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

Commit d2e1f0af authored by Marin Shalamanov's avatar Marin Shalamanov Committed by Android (Google) Code Review
Browse files

Merge "Don't query active mode after setting desired mode specs" into sc-dev

parents 3f31bd05 8d0c64de
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -853,14 +853,6 @@ final class LocalDisplayAdapter extends DisplayAdapter {
            // Do not lock when calling these SurfaceControl methods because they are sync
            // operations that may block for a while when setting display power mode.
            mSurfaceControlProxy.setDesiredDisplayModeSpecs(displayToken, modeSpecs);

            final int sfActiveModeId = mSurfaceControlProxy
                    .getDynamicDisplayInfo(displayToken).activeDisplayModeId;
            synchronized (getSyncRoot()) {
                if (updateActiveModeLocked(sfActiveModeId)) {
                    updateDeviceInfoLocked();
                }
            }
        }

        @Override