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

Commit 0744e2fa authored by Soonil Nagarkar's avatar Soonil Nagarkar
Browse files

Don't assume SYSTEM is current user on boot

Auto and chrome can apparently use different users at boot.

Bug: 137204067
Test: manual
Change-Id: I61371bcc167a39e6344fe457dca56f0003910ce8
(cherry picked from commit db49bea1)
parent f61fdd82
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -466,7 +466,7 @@ public class LocationManagerService extends ILocationManager.Stub {
        // the user being changed will cause a reload of all user specific settings, which causes
        // provider initialization, and propagates changes until a steady state is reached
        mCurrentUserId = UserHandle.USER_NULL;
        onUserChangedLocked(UserHandle.USER_SYSTEM);
        onUserChangedLocked(ActivityManager.getCurrentUser());

        // initialize in-memory settings values
        onBackgroundThrottleWhitelistChangedLocked();