Merge "Disable the camera and search buttons while we're in bouncer mode." into klp-dev
This commit is contained in:
@ -487,6 +487,7 @@ public class SlidingChallengeLayout extends ViewGroup implements ChallengeLayout
|
|||||||
@Override
|
@Override
|
||||||
public void showBouncer() {
|
public void showBouncer() {
|
||||||
if (mIsBouncing) return;
|
if (mIsBouncing) return;
|
||||||
|
setSystemUiVisibility(getSystemUiVisibility() | STATUS_BAR_DISABLE_SEARCH);
|
||||||
mWasChallengeShowing = mChallengeShowing;
|
mWasChallengeShowing = mChallengeShowing;
|
||||||
mIsBouncing = true;
|
mIsBouncing = true;
|
||||||
showChallenge(true);
|
showChallenge(true);
|
||||||
@ -513,6 +514,7 @@ public class SlidingChallengeLayout extends ViewGroup implements ChallengeLayout
|
|||||||
@Override
|
@Override
|
||||||
public void hideBouncer() {
|
public void hideBouncer() {
|
||||||
if (!mIsBouncing) return;
|
if (!mIsBouncing) return;
|
||||||
|
setSystemUiVisibility(getSystemUiVisibility() & ~STATUS_BAR_DISABLE_SEARCH);
|
||||||
if (!mWasChallengeShowing) showChallenge(false);
|
if (!mWasChallengeShowing) showChallenge(false);
|
||||||
mIsBouncing = false;
|
mIsBouncing = false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user