OSDN Git Service

Fix the back button ripple.
authorJiaquan He <hejq@google.com>
Wed, 24 May 2017 23:00:10 +0000 (16:00 -0700)
committerJiaquan He <hejq@google.com>
Fri, 26 May 2017 21:27:43 +0000 (14:27 -0700)
Bug: 62141426
Test: Manually checked that the default highlight doesn't show up
when tapping on the back button on the navigation bar.
Change-Id: Iedef32077c869e55f14dbd0aa92c4ce3220e0d1a

packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonRipple.java

index 8e51ddb..cc7943b 100644 (file)
@@ -194,6 +194,11 @@ public class KeyButtonRipple extends Drawable {
         return true;
     }
 
+    @Override
+    public boolean hasFocusStateSpecified() {
+        return true;
+    }
+
     public void setPressed(boolean pressed) {
         if (mDark != mLastDark && pressed) {
             mRipplePaint = null;