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

Commit 5b47865f authored by Danning Chen's avatar Danning Chen Committed by Android (Google) Code Review
Browse files

Merge "Add a semantic action IntDef in Notification for marking a conversation as a priority"

parents f4e08c79 27d51c89
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -661,6 +661,10 @@ package android.app {
    field public static final int FLAG_AUTOGROUP_SUMMARY = 1024; // 0x400
  }
  public static class Notification.Action implements android.os.Parcelable {
    field public static final int SEMANTIC_ACTION_MARK_CONVERSATION_AS_PRIORITY = 11; // 0xb
  }
  public static final class Notification.TvExtender implements android.app.Notification.Extender {
    ctor public Notification.TvExtender();
    ctor public Notification.TvExtender(android.app.Notification);
+10 −1
Original line number Diff line number Diff line
@@ -1523,6 +1523,14 @@ public class Notification implements Parcelable
         */
        public static final int SEMANTIC_ACTION_CALL = 10;

        /**
         * {@code SemanticAction}: Mark the conversation associated with the notification as a
         * priority. Note that this is only for use by the notification assistant services.
         * @hide
         */
        @SystemApi
        public static final int SEMANTIC_ACTION_MARK_CONVERSATION_AS_PRIORITY = 11;

        private final Bundle mExtras;
        @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 115609023)
        private Icon mIcon;
@@ -2233,7 +2241,8 @@ public class Notification implements Parcelable
                SEMANTIC_ACTION_UNMUTE,
                SEMANTIC_ACTION_THUMBS_UP,
                SEMANTIC_ACTION_THUMBS_DOWN,
                SEMANTIC_ACTION_CALL
                SEMANTIC_ACTION_CALL,
                SEMANTIC_ACTION_MARK_CONVERSATION_AS_PRIORITY
        })
        @Retention(RetentionPolicy.SOURCE)
        public @interface SemanticAction {}