Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f27f88f authored by Alex Hills's avatar Alex Hills Committed by Alexander Hills
Browse files

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
parent 7a98aee6
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -1009,7 +1009,7 @@ public class Notification implements Parcelable
        private final Bundle mExtras;
        private final Bundle mExtras;
        private Icon mIcon;
        private Icon mIcon;
        private final RemoteInput[] mRemoteInputs;
        private final RemoteInput[] mRemoteInputs;
        private boolean mAllowGeneratedReplies = false;
        private boolean mAllowGeneratedReplies = true;


        /**
        /**
         * Small icon representing the action.
         * Small icon representing the action.
@@ -1051,7 +1051,7 @@ public class Notification implements Parcelable
         */
         */
        @Deprecated
        @Deprecated
        public Action(int icon, CharSequence title, PendingIntent intent) {
        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)}! */
        /** 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 Icon mIcon;
            private final CharSequence mTitle;
            private final CharSequence mTitle;
            private final PendingIntent mIntent;
            private final PendingIntent mIntent;
            private boolean mAllowGeneratedReplies;
            private boolean mAllowGeneratedReplies = true;
            private final Bundle mExtras;
            private final Bundle mExtras;
            private ArrayList<RemoteInput> mRemoteInputs;
            private ArrayList<RemoteInput> mRemoteInputs;


@@ -1131,7 +1131,7 @@ public class Notification implements Parcelable
             * @param intent the {@link PendingIntent} to fire when users trigger this action
             * @param intent the {@link PendingIntent} to fire when users trigger this action
             */
             */
            public Builder(Icon icon, CharSequence title, PendingIntent intent) {
            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}
             * @param allowGeneratedReplies {@code true} to allow generated replies, {@code false}
             * otherwise
             * otherwise
             * @return this object for method chaining
             * @return this object for method chaining
             * The default value is {@code false}
             * The default value is {@code true}
             */
             */
            public Builder setAllowGeneratedReplies(boolean allowGeneratedReplies) {
            public Builder setAllowGeneratedReplies(boolean allowGeneratedReplies) {
                mAllowGeneratedReplies = allowGeneratedReplies;
                mAllowGeneratedReplies = allowGeneratedReplies;