summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2014-08-08 12:23:41 -0700
committerAlan Viverette <alanv@google.com>2014-08-08 12:23:41 -0700
commitdbcbca447564245921697c6965b77d69cb1e795f (patch)
tree5838b6f9e59c169359212713da81812f46d18c0f /graphics
parentd18a1da18d1f92acc2669f936da00cd66657e44b (diff)
downloadframeworks_base-dbcbca447564245921697c6965b77d69cb1e795f.zip
frameworks_base-dbcbca447564245921697c6965b77d69cb1e795f.tar.gz
frameworks_base-dbcbca447564245921697c6965b77d69cb1e795f.tar.bz2
Don't make ripples respond to selection state
Also exports view pressed state for hierarchyviewer. BUG: 16622634 Change-Id: I754428dd1d59f3b7450b01976a73d5151d27152e
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/graphics/drawable/RippleDrawable.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/graphics/java/android/graphics/drawable/RippleDrawable.java b/graphics/java/android/graphics/drawable/RippleDrawable.java
index cf675ed..f097239 100644
--- a/graphics/java/android/graphics/drawable/RippleDrawable.java
+++ b/graphics/java/android/graphics/drawable/RippleDrawable.java
@@ -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) {