diff options
| author | 2023-07-12 17:53:59 +0000 | |
|---|---|---|
| committer | 2023-07-12 17:53:59 +0000 | |
| commit | 13030fc06a2f44c9e715e02ad9af24172bbfad9f (patch) | |
| tree | e7f1564f90696bd1d024abed538ee5573efea184 | |
| parent | 1ad38e26cc344397f1791d8e8781e1256fa53ed5 (diff) | |
| parent | 8bd61cddb856bc91ddef437cd731b1a8db2c3bee (diff) | |
Merge "[CS] Have SBNotifActivityStarter use KeyguardStateController#isOccluded." into udc-qpr-dev
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarNotificationActivityStarter.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarNotificationActivityStarter.java index f79a08173bf2..b5d3f08e0f86 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarNotificationActivityStarter.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarNotificationActivityStarter.java @@ -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 { diff --git a/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarNotificationActivityStarterTest.java b/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarNotificationActivityStarterTest.java index d44af885a27e..8f91950cb329 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarNotificationActivityStarterTest.java +++ b/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarNotificationActivityStarterTest.java @@ -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);  |