Loading packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java +1 −1 Original line number Diff line number Diff line Loading @@ -5035,7 +5035,7 @@ public final class NotificationPanelViewController { } public boolean isFullyExpanded() { return mExpandedHeight >= getMaxPanelHeight(); return mExpandedHeight >= getMaxPanelTransitionDistance(); } public boolean isFullyCollapsed() { Loading packages/SystemUI/tests/src/com/android/systemui/shade/NotificationPanelViewControllerTest.java +9 −0 Original line number Diff line number Diff line Loading @@ -1680,6 +1680,15 @@ public class NotificationPanelViewControllerTest extends SysuiTestCase { inOrder.verify(mNotificationStackScrollLayoutController).onExpansionStopped(); } @Test public void inUnlockedSplitShade_transitioningMaxTransitionDistance_makesShadeFullyExpanded() { mStatusBarStateController.setState(SHADE); enableSplitShade(true); int transitionDistance = mNotificationPanelViewController.getMaxPanelTransitionDistance(); mNotificationPanelViewController.setExpandedHeight(transitionDistance); assertThat(mNotificationPanelViewController.isFullyExpanded()).isTrue(); } private static MotionEvent createMotionEvent(int x, int y, int action) { return MotionEvent.obtain( /* downTime= */ 0, /* eventTime= */ 0, action, x, y, /* metaState= */ 0); Loading Loading
packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java +1 −1 Original line number Diff line number Diff line Loading @@ -5035,7 +5035,7 @@ public final class NotificationPanelViewController { } public boolean isFullyExpanded() { return mExpandedHeight >= getMaxPanelHeight(); return mExpandedHeight >= getMaxPanelTransitionDistance(); } public boolean isFullyCollapsed() { Loading
packages/SystemUI/tests/src/com/android/systemui/shade/NotificationPanelViewControllerTest.java +9 −0 Original line number Diff line number Diff line Loading @@ -1680,6 +1680,15 @@ public class NotificationPanelViewControllerTest extends SysuiTestCase { inOrder.verify(mNotificationStackScrollLayoutController).onExpansionStopped(); } @Test public void inUnlockedSplitShade_transitioningMaxTransitionDistance_makesShadeFullyExpanded() { mStatusBarStateController.setState(SHADE); enableSplitShade(true); int transitionDistance = mNotificationPanelViewController.getMaxPanelTransitionDistance(); mNotificationPanelViewController.setExpandedHeight(transitionDistance); assertThat(mNotificationPanelViewController.isFullyExpanded()).isTrue(); } private static MotionEvent createMotionEvent(int x, int y, int action) { return MotionEvent.obtain( /* downTime= */ 0, /* eventTime= */ 0, action, x, y, /* metaState= */ 0); Loading