summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorkaiyiz <kaiyiz@codeaurora.org>2015-01-07 15:24:05 +0800
committerkaiyiz <kaiyiz@codeaurora.org>2015-01-07 15:24:05 +0800
commitd6565d0b02b87d44b17df46788239982f4dc9338 (patch)
tree9b924105ea34296436b7444b64ecafd35d391009 /src/com
parentcd63fc2f8771cc54fbee58ccbb188ef5e132c685 (diff)
downloadandroid_packages_apps_Snap-d6565d0b02b87d44b17df46788239982f4dc9338.tar.gz
android_packages_apps_Snap-d6565d0b02b87d44b17df46788239982f4dc9338.tar.bz2
android_packages_apps_Snap-d6565d0b02b87d44b17df46788239982f4dc9338.zip
SnapdragonCamera: Quick icon disappear after stop record by home key
Color effect and switch camera icons disappear if re-launch camera after press home key during recording video. The icons are hided when start record video, but show icons aren't called after stop video record by press home key. Show and hide icons should always be called when stop and start record video, so move the functions to stopVideoRecord and startVideoRecord. Change-Id: Ie4fe9102e226452502fcc382329cc0e01799b0cf CRs-Fixed: 777114
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/camera/VideoModule.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index 1bd395188..f5849d18b 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -646,6 +646,7 @@ public class VideoModule implements CameraModule,
mUI.animateCapture();
}
}
+ mUI.showUIafterRecording();
}
public void onVideoSaved() {
@@ -687,10 +688,8 @@ public class VideoModule implements CameraModule,
if (stop) {
onStopVideoRecording();
- mUI.showUIafterRecording();
} else {
startVideoRecording();
- mUI.hideUIwhileRecording();
}
mUI.enableShutter(false);
@@ -1597,6 +1596,7 @@ public class VideoModule implements CameraModule,
mStartRecPending = true;
mUI.cancelAnimations();
mUI.setSwipingEnabled(false);
+ mUI.hideUIwhileRecording();
mActivity.updateStorageSpaceAndHint();
if (mActivity.getStorageSpaceBytes() <= Storage.LOW_STORAGE_THRESHOLD_BYTES) {