Merge "Fix pressing back on bouncer" into qt-dev

This commit is contained in:
Fabian Kozynski
2019-05-03 17:00:25 +00:00
committed by Android (Google) Code Review
2 changed files with 12 additions and 2 deletions

View File

@@ -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);

View File

@@ -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;