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

Commit dfc852ca authored by Alex Salo's avatar Alex Salo Committed by Android (Google) Code Review
Browse files

Merge "Ensures RotationRequest#mLock can only accquried by main thread." into sc-dev

parents fc1efcb4 fe322bdc
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -126,14 +126,12 @@ class RemoteRotationResolverService extends ServiceConnector.Impl<IRotationResol


        void cancelInternal() {
            Handler.getMain().post(() -> {
                synchronized (mLock) {
                    if (mIsFulfilled) {
                        return;
                    }
                    mIsFulfilled = true;
            }
            Handler.getMain().post(() -> {
                synchronized (mLock) {
                    try {
                        if (mCancellation != null) {
                            mCancellation.cancel();