Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c381652 authored by Chandru S's avatar Chandru S
Browse files

Set early wakeup signal when shade is expanded through a11y GLOBAL_ACTION_NOTIFICATIONS

Most tests use this method to open shade instead of swiping down on the screen leading to performance regressions during the test run.

Bug: 392209635
Bug: 408379996
Bug: 415563164
Bug: 416225534
Flag: com.android.systemui.bouncer_ui_revamp
Test: Ran ExpandNotificationByDraggingMicrobenchmark for 1 iteration with the fix http://ab/I49700010403744296
   traces confirm the early wakeup signal now.
Change-Id: I06334861860d8678814c6b32cabf653e165fded3
parent 89281c61
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1358,6 +1358,11 @@ public final class NotificationPanelViewController implements
        if (mQsController.getExpanded()) {
            mQsController.flingQs(0, FLING_COLLAPSE);
        } else {
            if (!SceneContainerFlag.isEnabled() && Flags.bouncerUiRevamp()) {
                // Mark the bit that indicates that shade is going to expand when shade is opened
                // through AccessibilityService.GLOBAL_ACTION_NOTIFICATIONS
                mWindowRootViewBlurInteractor.setTrackingShadeMotion(true);
            }
            expand(true /* animate */);
        }
    }