diff options
Diffstat (limited to 'src/com/android/camera/ui/IndicatorControlWheel.java')
| -rw-r--r-- | src/com/android/camera/ui/IndicatorControlWheel.java | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/com/android/camera/ui/IndicatorControlWheel.java b/src/com/android/camera/ui/IndicatorControlWheel.java index 2d6c5c9..5f3d82a 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; @@ -493,4 +497,10 @@ public class IndicatorControlWheel extends IndicatorControl implements invalidate(); } } + + public void dismissSecondLevelIndicator() { + if (mCurrentLevel == 1) { + changeIndicatorsLevel(); + } + } } |
