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

Commit e0b02503 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...

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

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

Change-Id: I11f2bdb07330cc2ac35ef6cfd72e020c13c3449b
parents edf6bbea 1302c4bd
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();