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

Commit dbcbca44 authored by Alan Viverette's avatar Alan Viverette
Browse files

Don't make ripples respond to selection state

Also exports view pressed state for hierarchyviewer.

BUG: 16622634
Change-Id: I754428dd1d59f3b7450b01976a73d5151d27152e
parent d18a1da1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6901,6 +6901,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     *
     * @return true if the view is currently pressed, false otherwise
     */
    @ViewDebug.ExportedProperty
    public boolean isPressed() {
        return (mPrivateFlags & PFLAG_PRESSED) == PFLAG_PRESSED;
    }
+1 −2
Original line number Diff line number Diff line
@@ -225,8 +225,7 @@ public class RippleDrawable extends LayerDrawable {
            if (stateSet[i] == R.attr.state_enabled) {
                enabled = true;
            }
            if (stateSet[i] == R.attr.state_focused
                    || stateSet[i] == R.attr.state_selected) {
            if (stateSet[i] == R.attr.state_focused) {
                focused = true;
            }
            if (stateSet[i] == R.attr.state_pressed) {