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

Commit a68fda1a authored by Android Build Merger (Role)'s avatar Android Build Merger (Role) Committed by Android (Google) Code Review
Browse files

Merge "Merge "fixes mStartedUsers shoule be locked by mLock, not mVolumes" am:...

Merge "Merge "fixes mStartedUsers shoule be locked by mLock, not mVolumes" am: 1cd62480 am: 130cb923 am: b24828bd" into nyc-mr1-dev-plus-aosp
parents aee54786 29b3e922
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -922,7 +922,7 @@ class MountService extends IMountService.Stub

        // Record user as started so newly mounted volumes kick off events
        // correctly, then synthesize events for any already-mounted volumes.
        synchronized (mVolumes) {
        synchronized (mLock) {
            for (int i = 0; i < mVolumes.size(); i++) {
                final VolumeInfo vol = mVolumes.valueAt(i);
                if (vol.isVisibleForRead(userId) && vol.isMountedReadable()) {
@@ -945,7 +945,7 @@ class MountService extends IMountService.Stub
        } catch (NativeDaemonConnectorException ignored) {
        }

        synchronized (mVolumes) {
        synchronized (mLock) {
            mSystemUnlockedUsers = ArrayUtils.removeInt(mSystemUnlockedUsers, userId);
        }
    }