summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Wang <jaywang@codeaurora.org>2016-03-11 11:11:36 -0800
committerSteve Kondik <steve@cyngn.com>2016-08-03 15:45:46 -0700
commitc58924a30bda333137f5b9d808c9e6bb2e004a8f (patch)
tree5ee69e6dfb18e3b7eee41ac550761a3b91d42cc7
parent038809e1d3f444e65e9de9f5f4b46bd442862d79 (diff)
downloadandroid_packages_apps_Snap-c58924a30bda333137f5b9d808c9e6bb2e004a8f.zip
android_packages_apps_Snap-c58924a30bda333137f5b9d808c9e6bb2e004a8f.tar.gz
android_packages_apps_Snap-c58924a30bda333137f5b9d808c9e6bb2e004a8f.tar.bz2
SnapdragonCamera: Fix missing icon issue in error condition
When onError is called from media recorder, re-draw the video control icons after stopping the recording session. Change-Id: If7a38ff4c12ec90018fe0d1a89d08fd94bf89f6f CRs-Fixed: 982804
-rw-r--r--src/com/android/camera/VideoModule.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index 70dace0..721fb95 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -1817,6 +1817,7 @@ public class VideoModule implements CameraModule,
public void onError(MediaRecorder mr, int what, int extra) {
Log.e(TAG, "MediaRecorder error. what=" + what + ". extra=" + extra);
stopVideoRecording();
+ mUI.showUIafterRecording();
if (what == MediaRecorder.MEDIA_RECORDER_ERROR_UNKNOWN) {
// We may have run out of space on the sdcard.
mActivity.updateStorageSpaceAndHint();