summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2016-03-25 13:01:38 +0100
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-03-28 03:55:58 -0700
commitd525fe38002a7e5290348de33cb270b6c45a552b (patch)
tree219f49ae2fd8613d9340aa63e9cb674cef5fc483
parentac95bcdaf902921b763618e94985e282591f5c44 (diff)
downloadandroid_packages_apps_Snap-d525fe38002a7e5290348de33cb270b6c45a552b.zip
android_packages_apps_Snap-d525fe38002a7e5290348de33cb270b6c45a552b.tar.gz
android_packages_apps_Snap-d525fe38002a7e5290348de33cb270b6c45a552b.tar.bz2
Re-enable processing of drawable state.
The pressed state change detection provided by it is required for properly ending longshot mode. Change-Id: Ie8fd76f0bd76f47dfa7cda28fe6401ac2d2e0607
-rw-r--r--src/com/android/camera/ShutterButton.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/camera/ShutterButton.java b/src/com/android/camera/ShutterButton.java
index 240d2cc..1a98db4 100644
--- a/src/com/android/camera/ShutterButton.java
+++ b/src/com/android/camera/ShutterButton.java
@@ -88,7 +88,7 @@ public class ShutterButton extends ImageView {
* Hook into the drawable state changing to get changes to isPressed -- the
* onPressed listener doesn't always get called when the pressed state
* changes.
- *
+ */
@Override
protected void drawableStateChanged() {
super.drawableStateChanged();
@@ -127,7 +127,7 @@ public class ShutterButton extends ImageView {
}
mOldPressed = pressed;
}
- }*/
+ }
private void callShutterButtonFocus(boolean pressed) {
if (mListener != null) {