diff options
author | junjiez <junjiez@codeaurora.org> | 2018-04-10 14:13:41 +0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-04-18 19:08:18 -0700 |
commit | 9ec290f92272a2ef47545f4314f53a0425bbe7c4 (patch) | |
tree | 1cb7fa475d760614e22b824de4edca6792ca0449 | |
parent | c0b4347905ea99373e9f6e08f1bc0667d2f26329 (diff) | |
download | android_packages_apps_Snap-9ec290f92272a2ef47545f4314f53a0425bbe7c4.tar.gz android_packages_apps_Snap-9ec290f92272a2ef47545f4314f53a0425bbe7c4.tar.bz2 android_packages_apps_Snap-9ec290f92272a2ef47545f4314f53a0425bbe7c4.zip |
SnapdragonCamera:Disable video in longshot
When it's in longshot disable video button
to avoid memory issue caused by starting
recording when longshot is not completed.
Change-Id: I4b77e619e1e48d558eadfd46837ec87ebf397df9
CRs-Fixed: 2210569
-rwxr-xr-x | src/com/android/camera/CaptureModule.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index fb1537661..d3f3793aa 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -3506,6 +3506,7 @@ public class CaptureModule implements CameraModule, PhotoController, Log.d(TAG, "Longshot button up"); mLongshotActive = false; mPostProcessor.stopLongShot(); + mUI.enableVideo(!mLongshotActive); } } @@ -4608,11 +4609,13 @@ public class CaptureModule implements CameraModule, PhotoController, if (isLongshotNeedCancel()) { mLongshotActive = false; + mUI.enableVideo(!mLongshotActive); return; } Log.d(TAG, "Start Longshot"); mLongshotActive = true; + mUI.enableVideo(!mLongshotActive); takePicture(); } else { RotateTextToast.makeText(mActivity, "Long shot not support", Toast.LENGTH_SHORT).show(); |