summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/VideoModule.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/camera/VideoModule.java')
-rw-r--r--src/com/android/camera/VideoModule.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index 1c87968a3..231d9abf5 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -413,10 +413,9 @@ public class VideoModule implements CameraModule,
String action = intent.getAction();
if (action.equals(Intent.ACTION_MEDIA_EJECT)) {
stopVideoRecording();
- } else if (action.equals(Intent.ACTION_MEDIA_SCANNER_STARTED)) {
RotateTextToast.makeText(mActivity,
- mActivity.getResources().getString(R.string.wait), Toast.LENGTH_LONG)
- .show();
+ mActivity.getResources().getString(R.string.video_recording_stopped),
+ Toast.LENGTH_SHORT).show();
}
}
}
@@ -1110,6 +1109,8 @@ public class VideoModule implements CameraModule,
@Override
public void installIntentFilter() {
+ if(mReceiver != null)
+ return;
// install an intent filter to receive SD card related events.
IntentFilter intentFilter =
new IntentFilter(Intent.ACTION_MEDIA_EJECT);
@@ -1137,6 +1138,7 @@ public class VideoModule implements CameraModule,
initializeVideoControl();
showVideoSnapshotUI(false);
+ installIntentFilter();
if (!mPreviewing) {
openCamera();