From 3e8f5a2c1beb4b918856063880e05125946e4347 Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Fri, 3 Dec 2010 14:52:10 -0500 Subject: Hide navigation buttons and clock on lockscreen. (This introduces a StatusBarManager disable flag to ask the status bar to hide just the clock, which might be useful in other situations, such as clock/dock apps.) Bug: 3130393 Change-Id: Ia08627508518e2ed3713ffbf856e4ec42952b3a8 --- core/java/android/app/StatusBarManager.java | 8 +++++++- packages/SystemUI/res/layout-xlarge/status_bar.xml | 17 ++++++++++++++++- .../systemui/statusbar/tablet/TabletStatusBar.java | 18 ++++++++++++++++++ .../internal/policy/impl/KeyguardViewMediator.java | 4 +++- .../src/com/android/statusbartest/StatusBarTest.java | 13 +++++++------ 5 files changed, 51 insertions(+), 9 deletions(-) diff --git a/core/java/android/app/StatusBarManager.java b/core/java/android/app/StatusBarManager.java index fa7f794..97e6931 100644 --- a/core/java/android/app/StatusBarManager.java +++ b/core/java/android/app/StatusBarManager.java @@ -61,10 +61,16 @@ public class StatusBarManager { /** * Flag for {@link #disable} to hide only the navigation buttons. Don't use this - * unless you're the setup wizard. + * unless you're a special part of the system UI (i.e., setup wizard, keyguard). */ public static final int DISABLE_NAVIGATION = 0x00000020; + /** + * Flag for {@link #disable} to hide only the clock. You might use this if your activity has + * its own clock making the status bar's clock redundant. + */ + public static final int DISABLE_CLOCK = 0x00000040; + /** * Re-enable all of the status bar features that you've disabled. diff --git a/packages/SystemUI/res/layout-xlarge/status_bar.xml b/packages/SystemUI/res/layout-xlarge/status_bar.xml index 666bfdc..cd67d1a 100644 --- a/packages/SystemUI/res/layout-xlarge/status_bar.xml +++ b/packages/SystemUI/res/layout-xlarge/status_bar.xml @@ -76,8 +76,23 @@ android:textColor="#2e2e2e" /> + +