summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/app/CameraAppUI.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/camera/app/CameraAppUI.java')
-rw-r--r--src/com/android/camera/app/CameraAppUI.java15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/com/android/camera/app/CameraAppUI.java b/src/com/android/camera/app/CameraAppUI.java
index 231ff1aa3..b281a8754 100644
--- a/src/com/android/camera/app/CameraAppUI.java
+++ b/src/com/android/camera/app/CameraAppUI.java
@@ -446,9 +446,16 @@ public class CameraAppUI implements ModeListView.ModeSwitchListener,
public float exposureCompensationStep;
/**
- * Whether or not timer should show.
+ * Whether self-timer is enabled.
*/
public boolean enableSelfTimer = false;
+
+ /**
+ * Whether the option for self-timer should show. If true and
+ * {@link #enableSelfTimer} is false, then the option should be shown
+ * disabled.
+ */
+ public boolean showSelfTimer = false;
}
@@ -1756,7 +1763,11 @@ public class CameraAppUI implements ModeListView.ModeSwitchListener,
if (bottomBarSpec.enableSelfTimer) {
buttonManager.initializeButton(ButtonManager.BUTTON_COUNTDOWN, null);
} else {
- buttonManager.hideButton(ButtonManager.BUTTON_COUNTDOWN);
+ if (bottomBarSpec.showSelfTimer) {
+ buttonManager.disableButton(ButtonManager.BUTTON_COUNTDOWN);
+ } else {
+ buttonManager.hideButton(ButtonManager.BUTTON_COUNTDOWN);
+ }
}
if (bottomBarSpec.enablePanoOrientation