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

Commit bb3f3fe7 authored by Chris Li's avatar Chris Li Committed by Android (Google) Code Review
Browse files

Merge "Ensure lock for unregisterActivityConfigurationListener" into main

parents 71e4074c c4491b4c
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1925,7 +1925,12 @@ public class WindowProcessController extends ConfigurationContainer<Configuratio
                // showing.
                // If the configuration has been overridden by previous activity, empty it.
                mIsActivityConfigOverrideAllowed = false;
                // The call to `onServiceStarted` is not guarded with WM lock.
                mAtm.mH.post(() -> {
                    synchronized (mAtm.mGlobalLock) {
                        unregisterActivityConfigurationListener();
                    }
                });
                break;
            default:
                break;