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

Commit c67b2e1d authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Use blast sync for aod with display switch" into main

parents 0585343c c49f8bb9
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -18,6 +18,16 @@ flag {
    }
}

flag {
    name: "blast_sync_notification_shade_on_display_switch"
    namespace: "windowing_frontend"
    description: "Make the buffer content of notification shade synchronize with display switch"
    bug: "337154331"
    metadata {
        purpose: PURPOSE_BUGFIX
    }
}

flag {
  name: "edge_to_edge_by_default"
  namespace: "windowing_frontend"
+10 −0
Original line number Diff line number Diff line
@@ -194,6 +194,16 @@ public class DeferredDisplayUpdater implements DisplayUpdater {
            final Rect startBounds = new Rect(0, 0, mDisplayContent.mInitialDisplayWidth,
                    mDisplayContent.mInitialDisplayHeight);
            final int fromRotation = mDisplayContent.getRotation();
            if (Flags.blastSyncNotificationShadeOnDisplaySwitch() && physicalDisplayUpdated) {
                final WindowState notificationShade =
                        mDisplayContent.getDisplayPolicy().getNotificationShade();
                if (notificationShade != null && notificationShade.isVisible()
                        && mDisplayContent.mAtmService.mKeyguardController.isKeyguardOrAodShowing(
                                mDisplayContent.mDisplayId)) {
                    Slog.i(TAG, notificationShade + " uses blast for display switch");
                    notificationShade.mSyncMethodOverride = BLASTSyncEngine.METHOD_BLAST;
                }
            }

            mDisplayContent.mAtmService.deferWindowLayout();
            try {