Merge "Attempt to fix infinite recursion."

This commit is contained in:
Jorim Jaggi
2014-06-25 20:31:24 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 1 deletions

View File

@@ -302,6 +302,8 @@ public class NotificationPanelView extends PanelView implements
mUnlockIconActive = false;
mPageSwiper.reset();
closeQs();
mNotificationStackScroller.setOverScrollAmount(0f, true /* onTop */, false /* animate */,
true /* cancelAnimators */);
}
public void closeQs() {

View File

@@ -188,10 +188,10 @@ public class PanelBar extends FrameLayout {
pv.collapse();
waiting = true;
} else {
pv.resetViews();
pv.setExpandedFraction(0); // just in case
pv.setVisibility(View.GONE);
pv.cancelPeek();
pv.resetViews();
}
}
if (DEBUG) LOG("collapseAllPanels: animate=%s waiting=%s", animate, waiting);