Merge "Disable the camera and search buttons while we're in bouncer mode." into klp-dev

This commit is contained in:
Jim Miller
2013-10-13 22:53:36 +00:00
committed by Android (Google) Code Review

View File

@ -487,6 +487,7 @@ public class SlidingChallengeLayout extends ViewGroup implements ChallengeLayout
@Override
public void showBouncer() {
if (mIsBouncing) return;
setSystemUiVisibility(getSystemUiVisibility() | STATUS_BAR_DISABLE_SEARCH);
mWasChallengeShowing = mChallengeShowing;
mIsBouncing = true;
showChallenge(true);
@ -513,6 +514,7 @@ public class SlidingChallengeLayout extends ViewGroup implements ChallengeLayout
@Override
public void hideBouncer() {
if (!mIsBouncing) return;
setSystemUiVisibility(getSystemUiVisibility() & ~STATUS_BAR_DISABLE_SEARCH);
if (!mWasChallengeShowing) showChallenge(false);
mIsBouncing = false;