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

Commit 8c1bf615 authored by Alex Salo's avatar Alex Salo Committed by Automerger Merge Worker
Browse files

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14705985

Change-Id: Ic2de953dd7a7cf19a3a547e440e975e1553ea001
parents 847c9f75 dfc852ca
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();