summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorJoe Onorato <joeo@google.com>2011-01-28 13:43:22 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-01-28 13:43:22 -0800
commitd6874a105ee584b1dc60aae2f2af7c78ee875114 (patch)
tree9c1492343e2e4d7ad195d133ebd549be9478e3d0 /policy
parentb940659f415d536966f1bb8af4d5281efa3a7f7a (diff)
parentcfd0bafdebf1fccd3f5a0baed5cad8a539546e9b (diff)
downloadframeworks_base-d6874a105ee584b1dc60aae2f2af7c78ee875114.zip
frameworks_base-d6874a105ee584b1dc60aae2f2af7c78ee875114.tar.gz
frameworks_base-d6874a105ee584b1dc60aae2f2af7c78ee875114.tar.bz2
am cfd0bafd: Merge changes Iaa7bc042,Icc312fc9,I50ba06ed into honeycomb
* commit 'cfd0bafdebf1fccd3f5a0baed5cad8a539546e9b': Make keyguard also ask to turn the back button off, now that it is controlled separately. Allow independent control of the back and the other navigation buttons. Allow the status bar disable flags to be used as View's system ui visibility fields.
Diffstat (limited to 'policy')
-rw-r--r--policy/src/com/android/internal/policy/impl/KeyguardViewBase.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/policy/src/com/android/internal/policy/impl/KeyguardViewBase.java b/policy/src/com/android/internal/policy/impl/KeyguardViewBase.java
index 6b52454..36afd75 100644
--- a/policy/src/com/android/internal/policy/impl/KeyguardViewBase.java
+++ b/policy/src/com/android/internal/policy/impl/KeyguardViewBase.java
@@ -50,6 +50,8 @@ public abstract class KeyguardViewBase extends FrameLayout {
public KeyguardViewBase(Context context) {
super(context);
+ setSystemUiVisibility(STATUS_BAR_DISABLE_BACK);
+
// This is a faster way to draw the background on devices without hardware acceleration
setBackgroundDrawable(new Drawable() {
@Override
@@ -235,4 +237,9 @@ public abstract class KeyguardViewBase extends FrameLayout {
return false;
}
+ @Override
+ public void dispatchSystemUiVisibilityChanged(int visibility) {
+ super.dispatchSystemUiVisibilityChanged(visibility);
+ setSystemUiVisibility(STATUS_BAR_DISABLE_BACK);
+ }
}