commit | 7b5962991c434b26b10cd537ee32705743fb1345 | [log] [tgz] |
---|---|---|
author | Michal Brzezinski <brzezinski@google.com> | Wed Oct 26 17:00:16 2022 +0100 |
committer | Michal Brzezinski <brzezinski@google.com> | Thu Oct 27 14:29:15 2022 +0100 |
tree | 59000d325cfef57031b025795c5612d2a7ae8b46 | |
parent | f382a4ce223464bdd3cd7265c5c010b8b3e9ff13 [diff] |
Fixing QS not visible when opening split shade with adb command The command stopped working because we stopped relying on implicitly expanded state and now we want to explicitly change state to qsExpanded when shade is expanded. That will be done automatically if LockscreenShadeTransitionController animates QS. Fixes: 255445410 Test: run "adb shell cmd accessibility call-system-action 5" in split lockscreen and see QS appearing Change-Id: I9b80cfac476e0089300639e03efcc669ca99a22a
diff --git a/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java b/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java index 9ac3288..1e2d560 100644 --- a/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java +++ b/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java
@@ -2020,7 +2020,7 @@ // case but currently motion in portrait looks worse than when using flingSettings. // TODO: make below function transitioning smoothly also in portrait with null target mLockscreenShadeTransitionController.goToLockedShade( - /* expandedView= */null, /* needsQSAnimation= */false); + /* expandedView= */null, /* needsQSAnimation= */true); } else if (isFullyCollapsed()) { expand(true /* animate */); } else {
diff --git a/packages/SystemUI/tests/src/com/android/systemui/shade/NotificationPanelViewControllerTest.java b/packages/SystemUI/tests/src/com/android/systemui/shade/NotificationPanelViewControllerTest.java index 9713b71..b7f8f8d 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/shade/NotificationPanelViewControllerTest.java +++ b/packages/SystemUI/tests/src/com/android/systemui/shade/NotificationPanelViewControllerTest.java
@@ -1285,7 +1285,7 @@ mNotificationPanelViewController.expandWithQs(); verify(mLockscreenShadeTransitionController).goToLockedShade( - /* expandedView= */null, /* needsQSAnimation= */false); + /* expandedView= */null, /* needsQSAnimation= */true); } @Test