diff options
author | Wu-cheng Li <wuchengli@google.com> | 2011-09-09 05:34:37 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2011-09-12 06:51:35 +0800 |
commit | 0bb4487fcc7601118111d4545c31dae04651b456 (patch) | |
tree | bbc11b712e5029bc4b7eef0170a8ebf83cf32e75 /src/com/android/camera/ui/IndicatorControlBar.java | |
parent | e164996caf656a9b966e828dee5296c5b328f364 (diff) | |
download | LegacyCamera-0bb4487fcc7601118111d4545c31dae04651b456.zip LegacyCamera-0bb4487fcc7601118111d4545c31dae04651b456.tar.gz LegacyCamera-0bb4487fcc7601118111d4545c31dae04651b456.tar.bz2 |
Disable zoom and shutter button during video snapshot.
bug:5274338
Change-Id: I4a0f578535075ff37a92f642fd2a7bc6343d3357
Diffstat (limited to 'src/com/android/camera/ui/IndicatorControlBar.java')
-rw-r--r-- | src/com/android/camera/ui/IndicatorControlBar.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/camera/ui/IndicatorControlBar.java b/src/com/android/camera/ui/IndicatorControlBar.java index 773645f..ff986ee 100644 --- a/src/com/android/camera/ui/IndicatorControlBar.java +++ b/src/com/android/camera/ui/IndicatorControlBar.java @@ -111,8 +111,12 @@ public class IndicatorControlBar extends IndicatorControl implements mSecondLevelIcon.setVisibility(enabled ? View.VISIBLE : View.INVISIBLE); } else { // We also disable the zoom button during snapshot. - if (mZoomIcon != null) mZoomIcon.setEnabled(enabled); + enableZoom(enabled); } mSecondLevelIcon.setEnabled(enabled); } + + public void enableZoom(boolean enabled) { + if (mZoomIcon != null) mZoomIcon.setEnabled(enabled); + } } |