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

Commit e62c7c32 authored by Shirley Qian's avatar Shirley Qian Committed by Android (Google) Code Review
Browse files

Merge "Expose is_animated extra to be system api." into main

parents 7423238c eeaaf72b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1076,6 +1076,7 @@ package android.app {
  }
  public static class Notification.Action implements android.os.Parcelable {
    field @FlaggedApi("android.app.notification_is_animated_action_api") public static final String EXTRA_IS_ANIMATED = "android.extra.IS_ANIMATED";
    field public static final int SEMANTIC_ACTION_CONVERSATION_IS_PHISHING = 12; // 0xc
    field public static final int SEMANTIC_ACTION_MARK_CONVERSATION_AS_PRIORITY = 11; // 0xb
  }
+4 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package android.app;
import static android.annotation.Dimension.DP;
import static android.app.Flags.FLAG_NM_SUMMARIZATION;
import static android.app.Flags.FLAG_NOTIFICATION_IS_ANIMATED_ACTION_API;
import static android.app.Flags.FLAG_HIDE_STATUS_BAR_NOTIFICATION;
import static android.app.Flags.notificationsRedesignTemplates;
import static android.app.admin.DevicePolicyResources.Drawables.Source.NOTIFICATION;
@@ -2024,6 +2025,9 @@ public class Notification implements Parcelable
         * treatment.
         * @hide
         */
        @SystemApi
        @FlaggedApi(FLAG_NOTIFICATION_IS_ANIMATED_ACTION_API)
        @SuppressLint("ActionValue")
        public static final String EXTRA_IS_ANIMATED = "android.extra.IS_ANIMATED";
        private final Bundle mExtras;
+10 −0
Original line number Diff line number Diff line
@@ -365,6 +365,16 @@ flag {
  is_exported: true
}

flag {
  name: "notification_is_animated_action_api"
  namespace: "systemui"
  description: "This flag enables the API to define if an action requires special visual treatment."
  bug: "417509471"
  metadata {
    purpose: PURPOSE_FEATURE
  }
}

# End: exported flags that cannot be removed