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

Commit d58093d8 authored by Felipe Leme's avatar Felipe Leme
Browse files

Replaced deprecated UserManager API on UserSwitcherInteractor.

Test: presubmit
Flag: EXEMPT refactoring
Bug: 419586881

Change-Id: Id0cba5f4873740db050e0a524e1ed7efb2016f11
parent 974719fb
Loading
Loading
Loading
Loading
+4 −10
Original line number Diff line number Diff line
@@ -764,13 +764,7 @@ constructor(
    }

    private suspend fun isAnyUserUnlocked(): Boolean {
        return manager
            .getUsers(
                /* excludePartial= */ true,
                /* excludeDying= */ true,
                /* excludePreCreated= */ true,
            )
            .any { user ->
        return manager.getAliveUsers().any { user ->
            user.id != UserHandle.USER_SYSTEM &&
                withContext(backgroundDispatcher) { manager.isUserUnlocked(user.userHandle) }
        }