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

Commit bb997e52 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix SecurityException on accepting auto-rotate suggestion" into main

parents f0a8c32e 41a4cdbd
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -4730,10 +4730,15 @@ public class WindowManagerService extends IWindowManager.Stub
                    "API setRotationAtAngleIfLocked should not be used when "
                            + "enableDeviceStateAutoRotateSettingRefactor is disabled");
        }
        final long origId = Binder.clearCallingIdentity();
        try {
            synchronized (mGlobalLock) {
                final DisplayContent display = mRoot.getDefaultDisplay();
                display.getDisplayRotation().setRotationAtAngleIfLocked(rotation, caller);
            }
        } finally {
            Binder.restoreCallingIdentity(origId);
        }
    }

    @Override