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

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

Merge "Ignore the preferredModeId for non-focussed windows"

parents 089cf19a 3f864738
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -949,7 +949,7 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp

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