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

Commit 64a3cca2 authored by Sergey Nikolaienkov's avatar Sergey Nikolaienkov
Browse files

Move onKeyguardChangded() to completeUnlockUser() (async)

Move the onKeyguardChanged() call from onUnlockUser() (sync) to
completeUnlockUser (async).

Test: adb logcat | grep "\(SystemUserUnlock\|UnlockingUser-0\)\ took"
Test: plugin a USB drive to ATV device, make sure it gets discovered
Bug: 158524880
Bug: 156220570
Change-Id: I7e92946e3326e060ee5f9f54cc71cda1bc68f784
parent 8083336a
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1135,8 +1135,6 @@ class StorageManagerService extends IStorageManager.Stub
            Slog.wtf(TAG, e);
            Slog.wtf(TAG, e);
        }
        }


        onKeyguardStateChanged(false);

        mHandler.obtainMessage(H_COMPLETE_UNLOCK_USER, userId).sendToTarget();
        mHandler.obtainMessage(H_COMPLETE_UNLOCK_USER, userId).sendToTarget();
    }
    }


@@ -1148,6 +1146,8 @@ class StorageManagerService extends IStorageManager.Stub
            mPmInternal.migrateLegacyObbData();
            mPmInternal.migrateLegacyObbData();
        }
        }


        onKeyguardStateChanged(false);

        // Record user as started so newly mounted volumes kick off events
        // Record user as started so newly mounted volumes kick off events
        // correctly, then synthesize events for any already-mounted volumes.
        // correctly, then synthesize events for any already-mounted volumes.
        synchronized (mLock) {
        synchronized (mLock) {