From 91e1d0cddaaec5e077ca689744463901f9d5d580 Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Thu, 4 Feb 2010 15:41:20 -0800 Subject: Add support in StatusBarManager for disabling ticker text. The new flag, DISABLE_NOTIFICATION_TICKER, will be used by the car dock app (in conjunction with DISABLE_EXPAND) to minimize distractions to the driver. It may also be used by the secure lockscreen to avoid leaking personal information when the screen is on but the device is locked (e.g. when the desk dock app is running). Change-Id: Ibc8efde7da7501767163ae0a75f7c369b824e2a2 --- core/java/android/app/StatusBarManager.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/java/android/app/StatusBarManager.java b/core/java/android/app/StatusBarManager.java index 51d7393..72ec616 100644 --- a/core/java/android/app/StatusBarManager.java +++ b/core/java/android/app/StatusBarManager.java @@ -31,12 +31,12 @@ import android.os.ServiceManager; public class StatusBarManager { /** * Flag for {@link #disable} to make the status bar not expandable. Unless you also - * set {@link #DISABLE_NOTIFICATIONS}, new notifications will continue to show. + * set {@link #DISABLE_NOTIFICATION_ICONS}, new notifications will continue to show. */ public static final int DISABLE_EXPAND = 0x00000001; /** - * Flag for {@link #disable} to hide notification icons and ticker text. + * Flag for {@link #disable} to hide notification icons and scrolling ticker text. */ public static final int DISABLE_NOTIFICATION_ICONS = 0x00000002; @@ -47,6 +47,12 @@ public class StatusBarManager { public static final int DISABLE_NOTIFICATION_ALERTS = 0x00000004; /** + * Flag for {@link #disable} to hide only the scrolling ticker. Note that + * {@link #DISABLE_NOTIFICATION_ICONS} implies {@link #DISABLE_NOTIFICATION_TICKER}. + */ + public static final int DISABLE_NOTIFICATION_TICKER = 0x00000008; + + /** * Re-enable all of the status bar features that you've disabled. */ public static final int DISABLE_NONE = 0x00000000; -- cgit v1.1