Fixed a potential bug where the keyguard could become empty
Bug: 21124013 Change-Id: Ia955b1426e13d47a8f191817d55615253012acb1
This commit is contained in:
@@ -3460,6 +3460,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
|
||||
mKeyguardIndicationController.setVisible(true);
|
||||
mNotificationPanel.resetViews();
|
||||
mKeyguardUserSwitcher.setKeyguard(true, fromShadeLocked);
|
||||
mStatusBarView.removePendingHideExpandedRunnables();
|
||||
} else {
|
||||
mKeyguardIndicationController.setVisible(false);
|
||||
mKeyguardUserSwitcher.setKeyguard(false,
|
||||
|
||||
@@ -42,6 +42,12 @@ public class PhoneStatusBarView extends PanelBar {
|
||||
private ScrimController mScrimController;
|
||||
private float mMinFraction;
|
||||
private float mPanelFraction;
|
||||
private Runnable mHideExpandedRunnable = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
mBar.makeExpandedInvisible();
|
||||
}
|
||||
};
|
||||
|
||||
public PhoneStatusBarView(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
@@ -118,15 +124,14 @@ public class PhoneStatusBarView extends PanelBar {
|
||||
+ Log.getStackTraceString(new Throwable()));
|
||||
}
|
||||
// Close the status bar in the next frame so we can show the end of the animation.
|
||||
postOnAnimation(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
mBar.makeExpandedInvisible();
|
||||
}
|
||||
});
|
||||
postOnAnimation(mHideExpandedRunnable);
|
||||
mLastFullyOpenedPanel = null;
|
||||
}
|
||||
|
||||
public void removePendingHideExpandedRunnables() {
|
||||
removeCallbacks(mHideExpandedRunnable);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPanelFullyOpened(PanelView openPanel) {
|
||||
super.onPanelFullyOpened(openPanel);
|
||||
|
||||
Reference in New Issue
Block a user