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

Skip to content
Commit 520f60fa authored by burakov's avatar burakov Committed by Danny Burakov
Browse files

[flexiglass] Simplify authentication repository's `checkCredential`.

Currently, we use an async function from `LockPatternChecker` with
callbacks, but suspend the coroutine during the computation. Since this
means we're not using it asynchronously, this CL changes the code to
invoke the synchronous version of this method in `LockPatternUtils`,
which is the same function `LockPatternChecker` calls under the hood.

Bonus: makes the internal convenience function `selectedUserId` a little
easier to use.

Bug: 314757822
Test: Unit tests updated and still pass.
Flag: ACONFIG com.android.systemui.scene_container DEVELOPMENT
Change-Id: I459dce0acfb7efbe7a74eb521ffadde9c4f093ad
parent 6e42edd2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment