Loading core/java/android/view/View.java +1 −0 Original line number Diff line number Diff line Loading @@ -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; } Loading graphics/java/android/graphics/drawable/RippleDrawable.java +1 −2 Original line number Diff line number Diff line Loading @@ -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) { Loading Loading
core/java/android/view/View.java +1 −0 Original line number Diff line number Diff line Loading @@ -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; } Loading
graphics/java/android/graphics/drawable/RippleDrawable.java +1 −2 Original line number Diff line number Diff line Loading @@ -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) { Loading