Merge "[CS] Have SBNotifActivityStarter use KeyguardStateController#isOccluded." into udc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
13030fc06a
@@ -280,7 +280,7 @@ class StatusBarNotificationActivityStarter implements NotificationActivityStarte
|
||||
mShadeController.addPostCollapseAction(runnable);
|
||||
mShadeController.collapseShade(true /* animate */);
|
||||
} else if (mKeyguardStateController.isShowing()
|
||||
&& mCentralSurfaces.isOccluded()) {
|
||||
&& mKeyguardStateController.isOccluded()) {
|
||||
mStatusBarKeyguardViewManager.addAfterKeyguardGoneRunnable(runnable);
|
||||
mShadeController.collapseShade();
|
||||
} else {
|
||||
|
||||
@@ -274,7 +274,7 @@ public class StatusBarNotificationActivityStarterTest extends SysuiTestCase {
|
||||
notification.flags |= Notification.FLAG_AUTO_CANCEL;
|
||||
|
||||
when(mKeyguardStateController.isShowing()).thenReturn(true);
|
||||
when(mCentralSurfaces.isOccluded()).thenReturn(true);
|
||||
when(mKeyguardStateController.isOccluded()).thenReturn(true);
|
||||
|
||||
// When
|
||||
mNotificationActivityStarter.onNotificationClicked(entry, mNotificationRow);
|
||||
@@ -340,7 +340,7 @@ public class StatusBarNotificationActivityStarterTest extends SysuiTestCase {
|
||||
// Given
|
||||
sbn.getNotification().contentIntent = null;
|
||||
when(mKeyguardStateController.isShowing()).thenReturn(true);
|
||||
when(mCentralSurfaces.isOccluded()).thenReturn(true);
|
||||
when(mKeyguardStateController.isOccluded()).thenReturn(true);
|
||||
|
||||
// When
|
||||
mNotificationActivityStarter.onNotificationClicked(entry, mBubbleNotificationRow);
|
||||
@@ -368,7 +368,7 @@ public class StatusBarNotificationActivityStarterTest extends SysuiTestCase {
|
||||
// Given
|
||||
sbn.getNotification().contentIntent = mContentIntent;
|
||||
when(mKeyguardStateController.isShowing()).thenReturn(true);
|
||||
when(mCentralSurfaces.isOccluded()).thenReturn(true);
|
||||
when(mKeyguardStateController.isOccluded()).thenReturn(true);
|
||||
|
||||
// When
|
||||
mNotificationActivityStarter.onNotificationClicked(entry, mBubbleNotificationRow);
|
||||
|
||||
Reference in New Issue
Block a user