OSDN Git Service

Fix notification panel bug which prevented proper resizing
authorChet Haase <chet@google.com>
Tue, 21 Aug 2012 00:34:33 +0000 (17:34 -0700)
committerChet Haase <chet@google.com>
Tue, 21 Aug 2012 00:38:29 +0000 (17:38 -0700)
When the notification panel is opened larger than the list's length,
the penl is put into a "rubber band" mode, to animate the bottom of the
panel back to the end of the list. But the rubber band mode is never
unset, which causes an improper result if another notification is ended,
preventing the panel from resizing to the new, appropriate size of the list.

Fix is to unset the rubber banding flag when the snapping animation finishes.

Issue #6992133 Notification bar does not drop down completely in Mako

Change-Id: Id93918086353f58d6eb6bb071556f08eb2e2706e

packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java

index b595257..33f467f 100644 (file)
@@ -66,6 +66,7 @@ public class PanelView extends FrameLayout {
     private final Runnable mStopAnimator = new Runnable() { public void run() {
         if (mTimeAnimator.isStarted()) {
             mTimeAnimator.end();
+            mRubberbanding = false;
         }
     }};