From d5f11f98d13ed4390d0fc5b30241fd71dd000be8 Mon Sep 17 00:00:00 2001 From: Griff Hazen Date: Tue, 27 May 2014 15:40:09 -0700 Subject: [PATCH] DO NOT MERGE Cherry-pick: Add full screen size preset to WearableExtender Bug: 14838838 Change-Id: Id038d994d61d3c89dba08232a424a5b1b934e5db --- api/current.txt | 1 + core/java/android/app/Notification.java | 8 ++++++++ 2 files changed, 9 insertions(+) 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";