OSDN Git Service

Fixed an issue where the panel could be stuck expanding
authorSelim Cinek <cinek@google.com>
Tue, 23 May 2017 00:09:55 +0000 (17:09 -0700)
committerSelim Cinek <cinek@google.com>
Tue, 23 May 2017 00:11:58 +0000 (17:11 -0700)
Because we are aborting animations when the screen turns off
we also have to finish the expansion in that case, otherwise
it can be stuck in that state and the padding would never
update anymore.

Test: runtest systemui
Change-Id: Ia8f901fad06ef8d972a24b696e94940f64cc1957
Fixes: 38308213

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

index e378e87..6906587 100644 (file)
@@ -225,6 +225,7 @@ public abstract class PanelView extends FrameLayout {
             if (mTracking) {
                 onTrackingStopped(true /* expanded */);
             }
+            notifyExpandingFinished();
         }
     }