summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Griff Hazen <griff@google.com> 2014-05-27 15:40:09 -0700
committer Griff Hazen <griff@google.com> 2014-05-27 15:40:09 -0700
commita9cb1e66737f816d643bca03832af719cbdd0f20 (patch)
treeacbe20016c2c9f3e26a81844dd071a4ce8597717
parent6f72ac5d5f4b7bae34bb3dab7821f3dbcbf02bcd (diff)
Add full screen size preset to WearableExtender
For custom display notifications. Bug: 14838838 Change-Id: Id038d994d61d3c89dba08232a424a5b1b934e5db
-rw-r--r--api/current.txt1
-rw-r--r--core/java/android/app/Notification.java8
2 files changed, 9 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt
index 723bfdfaaae5..9db066a31e36 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -4141,6 +4141,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 1d664644bdb5..6b954e265030 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -2885,6 +2885,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.
+ * <p>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";