Inject different User IDs into biometric utils

Test: atest SettingsUnitTests

Bug: 222217132
Change-Id: I7939d78817f53814d0f8fb4636231a4833fbe26a
This commit is contained in:
Yuri Ufimtsev
2022-03-07 09:20:57 +00:00
parent bdd37ce348
commit f15bebe6c3
13 changed files with 38 additions and 25 deletions

View File

@@ -37,7 +37,11 @@ import com.android.settingslib.transition.SettingsTransitionHelper;
*/
public class BiometricNavigationUtils {
private final int mUserId = UserHandle.myUserId();
private final int mUserId;
public BiometricNavigationUtils(int userId) {
mUserId = userId;
}
/**
* Tries to launch the Settings screen if Quiet Mode is not enabled