Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d5708c5 authored by Jiaquan He's avatar Jiaquan He
Browse files

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
parent b8e5742f
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -194,6 +194,11 @@ public class KeyButtonRipple extends Drawable {
        return true;
        return true;
    }
    }


    @Override
    public boolean hasFocusStateSpecified() {
        return true;
    }

    public void setPressed(boolean pressed) {
    public void setPressed(boolean pressed) {
        if (mDark != mLastDark && pressed) {
        if (mDark != mLastDark && pressed) {
            mRipplePaint = null;
            mRipplePaint = null;