diff options
author | Chung-yih Wang <cywang@google.com> | 2011-11-02 15:01:56 +0800 |
---|---|---|
committer | Chung-yih Wang <cywang@google.com> | 2011-11-02 15:13:48 +0800 |
commit | a18e1141ed70a052d257a641c9a8b6f152a81d95 (patch) | |
tree | c1d84c0113e37b26cb74349913784e1ea3421938 /src | |
parent | cd2256375a71ae4c19808d22c313d999cc750d0c (diff) | |
download | LegacyCamera-a18e1141ed70a052d257a641c9a8b6f152a81d95.zip LegacyCamera-a18e1141ed70a052d257a641c9a8b6f152a81d95.tar.gz LegacyCamera-a18e1141ed70a052d257a641c9a8b6f152a81d95.tar.bz2 |
Back to the first-level when recording on Tablet.
bug:5395575
Change-Id: I1493466068ce76dce957cd717a602939c66f138c
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/camera/ui/IndicatorControlWheel.java | 16 | ||||
-rw-r--r-- | src/com/android/camera/ui/IndicatorControlWheelContainer.java | 2 |
2 files changed, 14 insertions, 4 deletions
diff --git a/src/com/android/camera/ui/IndicatorControlWheel.java b/src/com/android/camera/ui/IndicatorControlWheel.java index af36e11..218584a 100644 --- a/src/com/android/camera/ui/IndicatorControlWheel.java +++ b/src/com/android/camera/ui/IndicatorControlWheel.java @@ -135,9 +135,7 @@ public class IndicatorControlWheel extends IndicatorControl implements } } - @Override - public void onClick(View view) { - if (view == mZoomIcon) return; + private void changeIndicatorsLevel() { mPressedIndex = -1; dismissSettingPopup(); mInAnimation = true; @@ -145,6 +143,12 @@ public class IndicatorControlWheel extends IndicatorControl implements requestLayout(); } + @Override + public void onClick(View view) { + if (view == mZoomIcon) return; + changeIndicatorsLevel(); + } + public void initialize(Context context, PreferenceGroup group, boolean isZoomSupported, String[] keys, String[] otherSettingKeys) { mShutterButtonRadius = IndicatorControlWheelContainer.SHUTTER_BUTTON_RADIUS; @@ -492,4 +496,10 @@ public class IndicatorControlWheel extends IndicatorControl implements invalidate(); } } + + public void dismissSecondLevelIndicator() { + if (mCurrentLevel == 1) { + changeIndicatorsLevel(); + } + } } diff --git a/src/com/android/camera/ui/IndicatorControlWheelContainer.java b/src/com/android/camera/ui/IndicatorControlWheelContainer.java index 29074c2..a10136b 100644 --- a/src/com/android/camera/ui/IndicatorControlWheelContainer.java +++ b/src/com/android/camera/ui/IndicatorControlWheelContainer.java @@ -223,6 +223,6 @@ public class IndicatorControlWheelContainer extends IndicatorControlContainer { @Override public void dismissSecondLevelIndicator() { - // TODO: back to first-level indicator set. + mIndicatorControlWheel.dismissSecondLevelIndicator(); } } |