From 6d5708c55b416a90b2bb61ebc63ba99412e52617 Mon Sep 17 00:00:00 2001 From: Jiaquan He Date: Wed, 24 May 2017 16:00:10 -0700 Subject: [PATCH] Fix the back button ripple. 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 --- .../android/systemui/statusbar/policy/KeyButtonRipple.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonRipple.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonRipple.java index 8e51ddb89a350..cc7943b85bc19 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonRipple.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonRipple.java @@ -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;