summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2018-02-06 17:43:51 -0800
committerSelim Cinek <cinek@google.com>2018-02-06 17:43:51 -0800
commitffcc7cfc96784978f1054f08e4e145686a0577fc (patch)
treed37c4bac179af02ab1bbe76bc6909df0a882e357 /core/java/android
parent0b45fa9e656f95e0bc94e882a93b7c72a2c1bad8 (diff)
Removed the ripple for actions with remote inputs
Bug: 69168591 Test: click on inline reply, observe no ripple on action Change-Id: I8ad9e419d8475dc632df16f03d8ca1b6317803d2
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/app/Notification.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index d10b24f832b6..2a28fad4ac27 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -4617,10 +4617,15 @@ public class Notification implements Parcelable
if (N>MAX_ACTION_BUTTONS) N=MAX_ACTION_BUTTONS;
for (int i=0; i<N; i++) {
Action action = mActions.get(i);
- validRemoteInput |= hasValidRemoteInput(action);
+ boolean actionHasValidInput = hasValidRemoteInput(action);
+ validRemoteInput |= actionHasValidInput;
final RemoteViews button = generateActionButton(action, emphazisedMode,
i % 2 != 0, p.ambient);
+ if (actionHasValidInput) {
+ // Clear the drawable
+ button.setInt(R.id.action0, "setBackgroundResource", 0);
+ }
big.addView(R.id.actions, button);
}
} else {