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

Commit bac8a178 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Fix lock contention between DMS and ATMS

This causes jank often, and we don't need to call into ATMS
synchronously to update the dream state, as we're not doing that
when starting the dream.

Test: Presubmit, check if AOD still works
Bug: 219502599
Change-Id: Ib3048447e6bb36d78aac39a3dffd3bacf33c5e13
parent 18eb4c80
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -467,7 +467,9 @@ public final class DreamManagerService extends SystemService {
        }
        mCurrentDreamDozeScreenState = Display.STATE_UNKNOWN;
        mCurrentDreamDozeScreenBrightness = PowerManager.BRIGHTNESS_DEFAULT;
        mHandler.post(() -> {
            mAtmInternal.notifyDreamStateChanged(false);
        });
    }

    private void checkPermission(String permission) {