summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui/AbstractIndicatorButton.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/camera/ui/AbstractIndicatorButton.java')
-rw-r--r--src/com/android/camera/ui/AbstractIndicatorButton.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/camera/ui/AbstractIndicatorButton.java b/src/com/android/camera/ui/AbstractIndicatorButton.java
index 0ff7b19..362becf 100644
--- a/src/com/android/camera/ui/AbstractIndicatorButton.java
+++ b/src/com/android/camera/ui/AbstractIndicatorButton.java
@@ -38,7 +38,6 @@ public abstract class AbstractIndicatorButton extends RotateImageView implements
private final int MSG_DISMISS_POPUP = 0;
private IndicatorChangeListener mListener;
-
public static interface IndicatorChangeListener {
public void onShowIndicator(View view, boolean showed);
}
@@ -116,6 +115,7 @@ public abstract class AbstractIndicatorButton extends RotateImageView implements
abstract protected void initializePopup();
private void showPopup() {
+ setPressed(true);
mHandler.removeMessages(MSG_DISMISS_POPUP);
if (mPopup == null) initializePopup();
@@ -127,6 +127,7 @@ public abstract class AbstractIndicatorButton extends RotateImageView implements
}
public boolean dismissPopup() {
+ setPressed(false);
mHandler.removeMessages(MSG_DISMISS_POPUP);
if (mPopup != null && mPopup.getVisibility() == View.VISIBLE) {
mPopup.clearAnimation();