diff --git a/api/current.txt b/api/current.txt index db187148718f8..cca96e478eb6e 100644 --- a/api/current.txt +++ b/api/current.txt @@ -4689,6 +4689,7 @@ package android.app { method public android.app.Notification.WearableExtender setHintShowBackgroundOnly(boolean); method public android.app.Notification.WearableExtender setStartScrollBottom(boolean); field public static final int SIZE_DEFAULT = 0; // 0x0 + field public static final int SIZE_FULL_SCREEN = 5; // 0x5 field public static final int SIZE_LARGE = 4; // 0x4 field public static final int SIZE_MEDIUM = 3; // 0x3 field public static final int SIZE_SMALL = 2; // 0x2 diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 70f270fdf72df..25f24b1293342 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -3355,6 +3355,14 @@ public class Notification implements Parcelable */ public static final int SIZE_LARGE = 4; + /** + * Size value for use with {@link #setCustomSizePreset} to show this notification + * full screen. + *

This value is only applicable for custom display notifications created using + * {@link #setDisplayIntent}. + */ + public static final int SIZE_FULL_SCREEN = 5; + /** Notification extra which contains wearable extensions */ private static final String EXTRA_WEARABLE_EXTENSIONS = "android.wearable.EXTENSIONS";