am 0c5daf09: am b7981719: am 5c401a0e: am 3e683b6a: Merge "Fixed a bug where the panel got into a wrong state" into lmp-dev

* commit '0c5daf097880dd44ff74bc7f0f1625518b43a3de':
  Fixed a bug where the panel got into a wrong state
This commit is contained in:
Selim Cinek
2014-10-10 23:20:57 +00:00
committed by Android Git Automerger
2 changed files with 9 additions and 1 deletions

View File

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

View File

@@ -3754,7 +3754,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
}
private void instantCollapseNotificationPanel() {
mNotificationPanel.setExpandedFraction(0);
mNotificationPanel.instantCollapse();
}
@Override