Loading packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java +2 −0 Original line number Diff line number Diff line Loading @@ -2011,6 +2011,8 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump } updateExpansionAndVisibility(); mNotificationStackScrollLayoutController.setPanelFlinging(false); // expandImmediate should be always reset at the end of animation mQsController.setExpandImmediate(false); } private boolean isInContentBounds(float x, float y) { Loading packages/SystemUI/tests/src/com/android/systemui/shade/NotificationPanelViewControllerTest.java +7 −0 Original line number Diff line number Diff line Loading @@ -1096,6 +1096,13 @@ public class NotificationPanelViewControllerTest extends NotificationPanelViewCo inOrder.verify(mNotificationStackScrollLayoutController).onExpansionStopped(); } @Test public void onShadeFlingEnd_mExpandImmediateShouldBeReset() { mNotificationPanelViewController.onFlingEnd(false); verify(mQsController).setExpandImmediate(false); } @Test public void inUnlockedSplitShade_transitioningMaxTransitionDistance_makesShadeFullyExpanded() { mStatusBarStateController.setState(SHADE); Loading Loading
packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java +2 −0 Original line number Diff line number Diff line Loading @@ -2011,6 +2011,8 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump } updateExpansionAndVisibility(); mNotificationStackScrollLayoutController.setPanelFlinging(false); // expandImmediate should be always reset at the end of animation mQsController.setExpandImmediate(false); } private boolean isInContentBounds(float x, float y) { Loading
packages/SystemUI/tests/src/com/android/systemui/shade/NotificationPanelViewControllerTest.java +7 −0 Original line number Diff line number Diff line Loading @@ -1096,6 +1096,13 @@ public class NotificationPanelViewControllerTest extends NotificationPanelViewCo inOrder.verify(mNotificationStackScrollLayoutController).onExpansionStopped(); } @Test public void onShadeFlingEnd_mExpandImmediateShouldBeReset() { mNotificationPanelViewController.onFlingEnd(false); verify(mQsController).setExpandImmediate(false); } @Test public void inUnlockedSplitShade_transitioningMaxTransitionDistance_makesShadeFullyExpanded() { mStatusBarStateController.setState(SHADE); Loading