summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/VideoModule.java
diff options
context:
space:
mode:
authorJack Yoo <jyoo@codeaurora.org>2016-01-22 15:52:00 -0800
committerCamera Software Integration <camswint@localhost>2016-01-30 13:01:08 -0700
commit46fe73fa583283895217e5d2227e87e60f109ccd (patch)
tree8810eebdfbe9fb992e66df449180ac6ca13227c4 /src/com/android/camera/VideoModule.java
parent1c7de468595620e3f19304f6363a3143c0c166f6 (diff)
downloadandroid_packages_apps_Snap-46fe73fa583283895217e5d2227e87e60f109ccd.tar.gz
android_packages_apps_Snap-46fe73fa583283895217e5d2227e87e60f109ccd.tar.bz2
android_packages_apps_Snap-46fe73fa583283895217e5d2227e87e60f109ccd.zip
SnapdragonCamera: Register media status listener
Register sd card media status listener on resume. Change-Id: I7b3b7e3104b7729c83d83926bb794e0d7ec237d2 CRs-Fixed: 960865
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 3f4a17724..1be4f2e8e 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -410,10 +410,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();
}
}
}
@@ -1038,6 +1037,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);
@@ -1064,6 +1065,7 @@ public class VideoModule implements CameraModule,
}
showVideoSnapshotUI(false);
+ installIntentFilter();
if (!mPreviewing) {
openCamera();