Fixed a bug where the panel got into a wrong state
Bug: 17939708 Change-Id: Ieaa9dc2fc0c92ce52b02ac4ea452df47ee492ac3
This commit is contained in:
@@ -774,6 +774,14 @@ public abstract class PanelView extends FrameLayout {
|
||||
requestLayout();
|
||||
}
|
||||
|
||||
public void instantCollapse() {
|
||||
abortAnimations();
|
||||
setExpandedFraction(0f);
|
||||
if (mExpanding) {
|
||||
notifyExpandingFinished();
|
||||
}
|
||||
}
|
||||
|
||||
private void abortAnimations() {
|
||||
cancelPeek();
|
||||
if (mHeightAnimator != null) {
|
||||
|
||||
@@ -3733,7 +3733,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
|
||||
}
|
||||
|
||||
private void instantCollapseNotificationPanel() {
|
||||
mNotificationPanel.setExpandedFraction(0);
|
||||
mNotificationPanel.instantCollapse();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user