From 1f27f88f0285a2641a5d8de51af5f59757eb5028 Mon Sep 17 00:00:00 2001 From: Alex Hills Date: Thu, 12 Jan 2017 11:24:46 -0500 Subject: [PATCH] Changes the default value of Notification.Action.mAllowGeneratedReplies Changes the default from false to true Bug:31934635 Fixes:31934635 Test: CTS tests in ag/1824710 Change-Id: I1c7097627e77eed12bb9cc644c1cbb5c3197a750 --- core/java/android/app/Notification.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 119b0553d054..1c96108b8807 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -1009,7 +1009,7 @@ public class Notification implements Parcelable private final Bundle mExtras; private Icon mIcon; private final RemoteInput[] mRemoteInputs; - private boolean mAllowGeneratedReplies = false; + private boolean mAllowGeneratedReplies = true; /** * Small icon representing the action. @@ -1051,7 +1051,7 @@ public class Notification implements Parcelable */ @Deprecated public Action(int icon, CharSequence title, PendingIntent intent) { - this(Icon.createWithResource("", icon), title, intent, new Bundle(), null, false); + this(Icon.createWithResource("", icon), title, intent, new Bundle(), null, true); } /** Keep in sync with {@link Notification.Action.Builder#Builder(Action)}! */ @@ -1109,7 +1109,7 @@ public class Notification implements Parcelable private final Icon mIcon; private final CharSequence mTitle; private final PendingIntent mIntent; - private boolean mAllowGeneratedReplies; + private boolean mAllowGeneratedReplies = true; private final Bundle mExtras; private ArrayList mRemoteInputs; @@ -1131,7 +1131,7 @@ public class Notification implements Parcelable * @param intent the {@link PendingIntent} to fire when users trigger this action */ public Builder(Icon icon, CharSequence title, PendingIntent intent) { - this(icon, title, intent, new Bundle(), null, false); + this(icon, title, intent, new Bundle(), null, true); } /** @@ -1203,7 +1203,7 @@ public class Notification implements Parcelable * @param allowGeneratedReplies {@code true} to allow generated replies, {@code false} * otherwise * @return this object for method chaining - * The default value is {@code false} + * The default value is {@code true} */ public Builder setAllowGeneratedReplies(boolean allowGeneratedReplies) { mAllowGeneratedReplies = allowGeneratedReplies; -- 2.11.0