Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +4 −7 Original line number Diff line number Diff line Loading @@ -405,7 +405,7 @@ public class NotificationPanelViewController extends PanelViewController { * Determines if QS should be already expanded when expanding shade. * Used for split shade, two finger gesture as well as accessibility shortcut to QS. */ private boolean mQsExpandImmediate; @VisibleForTesting boolean mQsExpandImmediate; private boolean mTwoFingerQsExpandPossible; private String mHeaderDebugInfo; Loading @@ -430,7 +430,6 @@ public class NotificationPanelViewController extends PanelViewController { private boolean mExpandingFromHeadsUp; private boolean mCollapsedOnDown; private int mPositionMinSideMargin; private int mLastOrientation = -1; private boolean mClosingWithAlphaFadeOut; private boolean mHeadsUpAnimatingAway; private boolean mLaunchingAffordance; Loading Loading @@ -955,7 +954,6 @@ public class NotificationPanelViewController extends PanelViewController { mKeyguardBottomArea = mView.findViewById(R.id.keyguard_bottom_area); mPreviewContainer = mView.findViewById(R.id.preview_container); mKeyguardBottomArea.setPreviewContainer(mPreviewContainer); mLastOrientation = mResources.getConfiguration().orientation; initBottomArea(); Loading Loading @@ -1994,9 +1992,6 @@ public class NotificationPanelViewController extends PanelViewController { if (!isFullyCollapsed()) { return; } if (mShouldUseSplitNotificationShade) { mQsExpandImmediate = true; } mExpectingSynthesizedDown = true; onTrackingStarted(); updatePanelExpanded(); Loading Loading @@ -3172,6 +3167,9 @@ public class NotificationPanelViewController extends PanelViewController { mFalsingCollector.onTrackingStarted(!mKeyguardStateController.canDismissLockScreen()); super.onTrackingStarted(); mScrimController.onTrackingStarted(); if (mShouldUseSplitNotificationShade) { mQsExpandImmediate = true; } if (mQsFullyExpanded) { mQsExpandImmediate = true; setShowShelfOnly(true); Loading Loading @@ -4876,7 +4874,6 @@ public class NotificationPanelViewController extends PanelViewController { public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); mAffordanceHelper.onConfigurationChanged(); mLastOrientation = newConfig.orientation; } } Loading packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/NotificationPanelViewControllerTest.java +9 −0 Original line number Diff line number Diff line Loading @@ -947,6 +947,15 @@ public class NotificationPanelViewControllerTest extends SysuiTestCase { verify(mKeyguardStatusBarViewController).setAlpha(statusBarAlpha); } @Test public void testQsToBeImmediatelyExpandedInSplitShade() { enableSplitShade(/* enabled= */ true); mNotificationPanelViewController.onTrackingStarted(); assertThat(mNotificationPanelViewController.mQsExpandImmediate).isTrue(); } private void triggerPositionClockAndNotifications() { mNotificationPanelViewController.closeQs(); } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +4 −7 Original line number Diff line number Diff line Loading @@ -405,7 +405,7 @@ public class NotificationPanelViewController extends PanelViewController { * Determines if QS should be already expanded when expanding shade. * Used for split shade, two finger gesture as well as accessibility shortcut to QS. */ private boolean mQsExpandImmediate; @VisibleForTesting boolean mQsExpandImmediate; private boolean mTwoFingerQsExpandPossible; private String mHeaderDebugInfo; Loading @@ -430,7 +430,6 @@ public class NotificationPanelViewController extends PanelViewController { private boolean mExpandingFromHeadsUp; private boolean mCollapsedOnDown; private int mPositionMinSideMargin; private int mLastOrientation = -1; private boolean mClosingWithAlphaFadeOut; private boolean mHeadsUpAnimatingAway; private boolean mLaunchingAffordance; Loading Loading @@ -955,7 +954,6 @@ public class NotificationPanelViewController extends PanelViewController { mKeyguardBottomArea = mView.findViewById(R.id.keyguard_bottom_area); mPreviewContainer = mView.findViewById(R.id.preview_container); mKeyguardBottomArea.setPreviewContainer(mPreviewContainer); mLastOrientation = mResources.getConfiguration().orientation; initBottomArea(); Loading Loading @@ -1994,9 +1992,6 @@ public class NotificationPanelViewController extends PanelViewController { if (!isFullyCollapsed()) { return; } if (mShouldUseSplitNotificationShade) { mQsExpandImmediate = true; } mExpectingSynthesizedDown = true; onTrackingStarted(); updatePanelExpanded(); Loading Loading @@ -3172,6 +3167,9 @@ public class NotificationPanelViewController extends PanelViewController { mFalsingCollector.onTrackingStarted(!mKeyguardStateController.canDismissLockScreen()); super.onTrackingStarted(); mScrimController.onTrackingStarted(); if (mShouldUseSplitNotificationShade) { mQsExpandImmediate = true; } if (mQsFullyExpanded) { mQsExpandImmediate = true; setShowShelfOnly(true); Loading Loading @@ -4876,7 +4874,6 @@ public class NotificationPanelViewController extends PanelViewController { public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); mAffordanceHelper.onConfigurationChanged(); mLastOrientation = newConfig.orientation; } } Loading
packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/NotificationPanelViewControllerTest.java +9 −0 Original line number Diff line number Diff line Loading @@ -947,6 +947,15 @@ public class NotificationPanelViewControllerTest extends SysuiTestCase { verify(mKeyguardStatusBarViewController).setAlpha(statusBarAlpha); } @Test public void testQsToBeImmediatelyExpandedInSplitShade() { enableSplitShade(/* enabled= */ true); mNotificationPanelViewController.onTrackingStarted(); assertThat(mNotificationPanelViewController.mQsExpandImmediate).isTrue(); } private void triggerPositionClockAndNotifications() { mNotificationPanelViewController.closeQs(); } Loading