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

Commit 6cab3251 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix the race in per display brightness overrides." into main

parents a5960576 78ad3841
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -853,7 +853,8 @@ class RootWindowContainer extends WindowContainer<DisplayContent>

        // Post these on a handler such that we don't call into power manager service while
        // holding the window manager lock to avoid lock contention with power manager lock.
        mHandler.obtainMessage(SET_SCREEN_BRIGHTNESS_OVERRIDE, mDisplayBrightnessOverrides)
        // Send a copy of the brightness overrides as they may be cleared before being sent out.
        mHandler.obtainMessage(SET_SCREEN_BRIGHTNESS_OVERRIDE, mDisplayBrightnessOverrides.clone())
                .sendToTarget();
        mHandler.obtainMessage(SET_USER_ACTIVITY_TIMEOUT, mUserActivityTimeout).sendToTarget();