diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index a3a8a5e6c651d..9dcb23711a52f 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -822,6 +822,17 @@ public class Notification implements Parcelable */ public static final int VISIBILITY_SECRET = -1; + /** + * @hide + */ + @IntDef(prefix = "VISIBILITY_", value = { + VISIBILITY_PUBLIC, + VISIBILITY_PRIVATE, + VISIBILITY_SECRET, + NotificationManager.VISIBILITY_NO_OVERRIDE + }) + public @interface NotificationVisibilityOverride{}; + /** * Notification category: incoming call (voice or video) or similar synchronous communication request. */ diff --git a/core/java/android/service/notification/NotificationListenerService.java b/core/java/android/service/notification/NotificationListenerService.java index 7aa5bbc930fbc..bf5f24d17f8ad 100644 --- a/core/java/android/service/notification/NotificationListenerService.java +++ b/core/java/android/service/notification/NotificationListenerService.java @@ -1786,7 +1786,8 @@ public abstract class NotificationListenerService extends Service { * {@link NotificationListenerService.Ranking#VISIBILITY_NO_OVERRIDE} if * no such preference has been expressed. */ - public int getLockscreenVisibilityOverride() { + public @Notification.NotificationVisibilityOverride + int getLockscreenVisibilityOverride() { return mVisibilityOverride; } diff --git a/packages/SystemUI/res/layout/notif_half_shelf.xml b/packages/SystemUI/res/layout/notif_half_shelf.xml index d36c1a8c961b4..42f14f30da004 100644 --- a/packages/SystemUI/res/layout/notif_half_shelf.xml +++ b/packages/SystemUI/res/layout/notif_half_shelf.xml @@ -67,7 +67,7 @@ android:textSize="15sp" android:ellipsize="end" android:maxLines="1" - style="@style/TextAppearance.NotificationInfo.Title" /> + style="@style/TextAppearance.NotificationImportanceChannel" /> @@ -90,7 +90,7 @@ diff --git a/packages/SystemUI/res/values/colors.xml b/packages/SystemUI/res/values/colors.xml index d4783197e1f17..55365bd3c6924 100644 --- a/packages/SystemUI/res/values/colors.xml +++ b/packages/SystemUI/res/values/colors.xml @@ -115,8 +115,6 @@ @color/GM2_grey_900 @color/GM2_grey_700 - - @color/GM2_grey_200 #ffffff