Merge "Ignore the prefModeId only for PiP windows, rather than all non-focussed windows." into tm-qpr-dev

This commit is contained in:
Kriti Dang
2022-09-02 10:38:34 +00:00
committed by Android (Google) Code Review

View File

@@ -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;
}