Merge "Fix pressing back on bouncer" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e3e8746e47
@@ -1316,7 +1316,11 @@ public class NotificationPanelView extends PanelView implements
|
||||
} else if (oldState == StatusBarState.SHADE_LOCKED
|
||||
&& statusBarState == StatusBarState.KEYGUARD) {
|
||||
animateKeyguardStatusBarIn(StackStateAnimator.ANIMATION_DURATION_STANDARD);
|
||||
mQs.animateHeaderSlidingOut();
|
||||
// Only animate header if the header is visible. If not, it will partially animate out
|
||||
// the top of QS
|
||||
if (!mQsExpanded) {
|
||||
mQs.animateHeaderSlidingOut();
|
||||
}
|
||||
} else {
|
||||
mKeyguardStatusBar.setAlpha(1f);
|
||||
mKeyguardStatusBar.setVisibility(keyguardShowing ? View.VISIBLE : View.INVISIBLE);
|
||||
|
||||
@@ -661,7 +661,13 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
|
||||
public boolean onBackPressed(boolean hideImmediately) {
|
||||
if (mBouncer.isShowing()) {
|
||||
mStatusBar.endAffordanceLaunch();
|
||||
reset(hideImmediately);
|
||||
// The second condition is for SIM card locked bouncer
|
||||
if (mBouncer.isScrimmed() && !mBouncer.needsFullscreenBouncer()) {
|
||||
hideBouncer(false);
|
||||
updateStates();
|
||||
} else {
|
||||
reset(hideImmediately);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user