diff options
author | Wu-cheng Li <wuchengli@google.com> | 2010-12-16 18:03:39 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2010-12-17 16:36:01 +0800 |
commit | fba0439b62f19a2a19ff6559c1ae055e910400db (patch) | |
tree | cd88cfb16c6de1cbb2114ebe47f1b6542ab85272 /src/com/android/camera/ui/IndicatorWheel.java | |
parent | 286727c4681ccdc0b9832ff006accf569ddab172 (diff) | |
download | LegacyCamera-fba0439b62f19a2a19ff6559c1ae055e910400db.zip LegacyCamera-fba0439b62f19a2a19ff6559c1ae055e910400db.tar.gz LegacyCamera-fba0439b62f19a2a19ff6559c1ae055e910400db.tar.bz2 |
Show a toast when wb or flash is pressed in scene mode.
bug:3294395
Change-Id: Id8500a3f2abe6a7c261a4cad625a6ad3beba0b7d
Diffstat (limited to 'src/com/android/camera/ui/IndicatorWheel.java')
-rw-r--r-- | src/com/android/camera/ui/IndicatorWheel.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/camera/ui/IndicatorWheel.java b/src/com/android/camera/ui/IndicatorWheel.java index 7bb38a8..7221a9f 100644 --- a/src/com/android/camera/ui/IndicatorWheel.java +++ b/src/com/android/camera/ui/IndicatorWheel.java @@ -64,6 +64,7 @@ public class IndicatorWheel extends ViewGroup { static public interface Listener { public void onIndicatorClicked(int index); + public void onOverriddenIndicatorClicked(); } public void setListener(Listener listener) { @@ -119,6 +120,11 @@ public class IndicatorWheel extends ViewGroup { View child = getChildAt(i); if (child instanceof IndicatorButton) { if (((IndicatorButton) child).isOverridden()) { + // Do not notify in ACTION_MOVE to avoid lots of + // toast being displayed. + if (action == MotionEvent.ACTION_DOWN) { + mListener.onOverriddenIndicatorClicked(); + } return true; } } |