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

Commit 0c0eca73 authored by Prakriti Gupta's avatar Prakriti Gupta
Browse files

Add category for voicemail that can be used to filter notifications

Test: Build test and flag tested via adb
Bug: 322806700
Change-Id: I7b4a8def72bbf69ba039c516dfa0303648b70a2f
parent addb0d3b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6352,6 +6352,7 @@ package android.app {
    field public static final String CATEGORY_STOPWATCH = "stopwatch";
    field public static final String CATEGORY_SYSTEM = "sys";
    field public static final String CATEGORY_TRANSPORT = "transport";
    field @FlaggedApi("android.app.category_voicemail") public static final String CATEGORY_VOICEMAIL = "voicemail";
    field public static final String CATEGORY_WORKOUT = "workout";
    field @ColorInt public static final int COLOR_DEFAULT = 0; // 0x0
    field @NonNull public static final android.os.Parcelable.Creator<android.app.Notification> CREATOR;
+6 −0
Original line number Diff line number Diff line
@@ -1060,6 +1060,12 @@ public class Notification implements Parcelable
     */
    public static final String CATEGORY_MISSED_CALL = "missed_call";
    /**
     * Notification category: voicemail.
     */
    @FlaggedApi(Flags.FLAG_CATEGORY_VOICEMAIL)
    public static final String CATEGORY_VOICEMAIL = "voicemail";
    /**
     * One of the predefined notification categories (see the <code>CATEGORY_*</code> constants)
     * that best describes this Notification.  May be used by the system for ranking and filtering.
+7 −0
Original line number Diff line number Diff line
@@ -43,3 +43,10 @@ flag {
  description: "Fixes the behavior of KeyguardManager#setPrivateNotificationsAllowed()"
  bug: "309920145"
}

flag {
  name: "category_voicemail"
  namespace: "wear_sysui"
  description: "Adds a new voicemail category for notifications"
  bug: "322806700"
}