diff options
author | Jim Miller <jaggies@google.com> | 2013-10-13 17:26:39 -0700 |
---|---|---|
committer | Jim Miller <jaggies@google.com> | 2013-10-13 17:26:39 -0700 |
commit | fadccf1d0e13194254e0c87851698ca4fcc98c81 (patch) | |
tree | 19427e0bbf9458e377fcb872cefa69f9c3cc20c4 /packages | |
parent | 39eaeb99c35e8d09ef27d040bf49436d13899a16 (diff) | |
download | frameworks_base-fadccf1d0e13194254e0c87851698ca4fcc98c81.zip frameworks_base-fadccf1d0e13194254e0c87851698ca4fcc98c81.tar.gz frameworks_base-fadccf1d0e13194254e0c87851698ca4fcc98c81.tar.bz2 |
Hide the camera and search icons when switching to the camera page
Partial fix for bug 11190737
Change-Id: I8b14a0b32cec51fe381f8ef110a13623d8324938
Diffstat (limited to 'packages')
-rw-r--r-- | packages/Keyguard/src/com/android/keyguard/KeyguardViewStateManager.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardViewStateManager.java b/packages/Keyguard/src/com/android/keyguard/KeyguardViewStateManager.java index 7039218..8e39628 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardViewStateManager.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardViewStateManager.java @@ -139,7 +139,13 @@ public class KeyguardViewStateManager implements boolean isCameraPage = newPage instanceof CameraWidgetFrame; SlidingChallengeLayout scl = (SlidingChallengeLayout) mChallengeLayout; scl.setChallengeInteractive(!isCameraPage); - if (isCameraPage) scl.fadeOutChallenge(); + if (isCameraPage) { + scl.fadeOutChallenge(); + } + final int currentFlags = mKeyguardWidgetPager.getSystemUiVisibility(); + final int newFlags = isCameraPage ? (currentFlags | View.STATUS_BAR_DISABLE_SEARCH) + : (currentFlags & ~View.STATUS_BAR_DISABLE_SEARCH); + mKeyguardWidgetPager.setSystemUiVisibility(newFlags); } // If the page we're settling to is the same as we started on, and the action of |