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

Commit 7b512154 authored by Kriti Dang's avatar Kriti Dang Committed by Android (Google) Code Review
Browse files

Merge "Ignore the prefModeId only for PiP windows, rather than all...

Merge "Ignore the prefModeId only for PiP windows, rather than all non-focussed windows." into tm-qpr-dev
parents abcf028a 75222338
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -982,7 +982,9 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp

                final int preferredModeId = getDisplayPolicy().getRefreshRatePolicy()
                        .getPreferredModeId(w);
                if (w.isFocused() && mTmpApplySurfaceChangesTransactionState.preferredModeId == 0

                if (w.getWindowingMode() != WINDOWING_MODE_PINNED
                        && mTmpApplySurfaceChangesTransactionState.preferredModeId == 0
                        && preferredModeId != 0) {
                    mTmpApplySurfaceChangesTransactionState.preferredModeId = preferredModeId;
                }