summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Selim Cinek <cinek@google.com> 2018-02-08 16:59:54 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2018-02-08 16:59:54 +0000
commitdf155c750b78b40439200e465dd501ae95c0eb16 (patch)
tree4a642c1c279d816faf1d7aafadf6dfdd6c5e0ee4
parent6d8a63d7715c0be355e7e8836888f44b67a3ddfd (diff)
parentffcc7cfc96784978f1054f08e4e145686a0577fc (diff)
Merge "Removed the ripple for actions with remote inputs"
-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 f4836b7dbc89..c80565869f56 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -4616,10 +4616,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 {