summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2018-05-18 16:20:40 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-05-18 16:20:40 +0000
commitf75019b810db6fef11c13546e0215bc034e7de19 (patch)
tree44761fe3dc428e7705fbc37cf7dc7a511d2dac86 /core/java
parentf9491caf4b1db5a8db5671a699b4999b4f5c4f86 (diff)
parent8cc15d2ebf3cb2e5caaefb984e547b4b3c1249d0 (diff)
Merge "Keep notification when sending smart reply." into pi-dev
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/app/Notification.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index 526888d09772..a591eafea411 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -984,6 +984,17 @@ public class Notification implements Parcelable
public static final String EXTRA_SHOW_REMOTE_INPUT_SPINNER = "android.remoteInputSpinner";
/**
+ * {@link #extras} key: boolean as supplied to
+ * {@link Builder#setHideSmartReplies(boolean)}.
+ *
+ * If set to true, then any smart reply buttons will be hidden.
+ *
+ * @see Builder#setHideSmartReplies(boolean)
+ * @hide
+ */
+ public static final String EXTRA_HIDE_SMART_REPLIES = "android.hideSmartReplies";
+
+ /**
* {@link #extras} key: this is a small piece of additional text as supplied to
* {@link Builder#setContentInfo(CharSequence)}.
*/
@@ -3595,6 +3606,15 @@ public class Notification implements Parcelable
}
/**
+ * Sets whether smart reply buttons should be hidden.
+ * @hide
+ */
+ public Builder setHideSmartReplies(boolean hideSmartReplies) {
+ mN.extras.putBoolean(EXTRA_HIDE_SMART_REPLIES, hideSmartReplies);
+ return this;
+ }
+
+ /**
* Sets the number of items this notification represents. May be displayed as a badge count
* for Launchers that support badging.
*/