From 27ebaef9c1210ee068c44585c4d6fb648d7e3d7d Mon Sep 17 00:00:00 2001 From: weijiew Date: Mon, 14 Nov 2016 15:27:36 +0800 Subject: SnapdragonCamera: Shutter button was disabled after switching to video mode Video mode was not supported when triggering continue shot, when continue shot was triggered, video button was not disabled and led to shutter button can't restore to enable. Solution: Disable video button when triggering continue shot;disable continue shot when recording video Change-Id: If30323e6a3f9b39ce6c5f3a8c74d78ac7526c382 CRs-Fixed: 1085338 --- src/com/android/camera/CaptureUI.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/com/android/camera/CaptureUI.java') diff --git a/src/com/android/camera/CaptureUI.java b/src/com/android/camera/CaptureUI.java index 88460b865..e73ad32f5 100644 --- a/src/com/android/camera/CaptureUI.java +++ b/src/com/android/camera/CaptureUI.java @@ -879,6 +879,15 @@ public class CaptureUI implements FocusOverlayManager.FocusUI, } } + /** + * Enables or disables the video button. + */ + public void enableVideo(boolean enabled) { + if (mVideoButton != null) { + mVideoButton.setEnabled(enabled); + } + } + private boolean handleBackKeyOnMenu() { if (mFilterMenuStatus == FILTER_MENU_ON) { removeFilterMenu(true); -- cgit v1.2.3