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

Commit a563b304 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

powermanager: Extend scope of lock when updating blocked UIDs

 * Stop WTFs from the system, we need to hold the lock when calling
   updatePowerStateLocked as one might expect.

Change-Id: I344e93cd4ffef915f1684063a496b9e9bbfcb9a6
parent 28e023d0
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -3918,13 +3918,13 @@ public final class PowerManagerService extends SystemService
                else {
                    mBlockedUids.clear();
                }
            }
                if(changed){
                    mDirty |= DIRTY_WAKE_LOCKS;
                    updatePowerStateLocked();
                }
            }
        }
    }

    private void setButtonBrightnessOverrideFromWindowManagerInternal(int brightness) {
        synchronized (mLock) {