Loading services/core/java/com/android/server/biometrics/BiometricService.java +11 −6 Original line number Diff line number Diff line Loading @@ -406,12 +406,7 @@ public class BiometricService extends SystemService { userId) != 0); if (userId == ActivityManager.getCurrentUser()) { List<EnabledOnKeyguardCallback> callbacks = mEnabledOnKeyguardCallbacks; for (int i = 0; i < callbacks.size(); i++) { callbacks.get(i).notify(BiometricSourceType.FACE, mFaceEnabledOnKeyguard.getOrDefault(userId, DEFAULT_KEYGUARD_ENABLED)); } notifyEnabledOnKeyguardCallbacks(userId); } } else if (FACE_UNLOCK_APP_ENABLED.equals(uri)) { mFaceEnabledForApps.put(userId, Settings.Secure.getIntForUser( Loading Loading @@ -441,6 +436,15 @@ public class BiometricService extends SystemService { return mFaceAlwaysRequireConfirmation .getOrDefault(userId, DEFAULT_ALWAYS_REQUIRE_CONFIRMATION); } void notifyEnabledOnKeyguardCallbacks(int userId) { List<EnabledOnKeyguardCallback> callbacks = mEnabledOnKeyguardCallbacks; for (int i = 0; i < callbacks.size(); i++) { callbacks.get(i).notify(BiometricSourceType.FACE, mFaceEnabledOnKeyguard.getOrDefault(userId, DEFAULT_KEYGUARD_ENABLED)); } } } private final class EnabledOnKeyguardCallback implements IBinder.DeathRecipient { Loading Loading @@ -809,6 +813,7 @@ public class BiometricService extends SystemService { @Override public void onUserSwitchComplete(int newUserId) { mSettingObserver.updateContentObserver(); mSettingObserver.notifyEnabledOnKeyguardCallbacks(newUserId); } }, BiometricService.class.getName() ); Loading Loading
services/core/java/com/android/server/biometrics/BiometricService.java +11 −6 Original line number Diff line number Diff line Loading @@ -406,12 +406,7 @@ public class BiometricService extends SystemService { userId) != 0); if (userId == ActivityManager.getCurrentUser()) { List<EnabledOnKeyguardCallback> callbacks = mEnabledOnKeyguardCallbacks; for (int i = 0; i < callbacks.size(); i++) { callbacks.get(i).notify(BiometricSourceType.FACE, mFaceEnabledOnKeyguard.getOrDefault(userId, DEFAULT_KEYGUARD_ENABLED)); } notifyEnabledOnKeyguardCallbacks(userId); } } else if (FACE_UNLOCK_APP_ENABLED.equals(uri)) { mFaceEnabledForApps.put(userId, Settings.Secure.getIntForUser( Loading Loading @@ -441,6 +436,15 @@ public class BiometricService extends SystemService { return mFaceAlwaysRequireConfirmation .getOrDefault(userId, DEFAULT_ALWAYS_REQUIRE_CONFIRMATION); } void notifyEnabledOnKeyguardCallbacks(int userId) { List<EnabledOnKeyguardCallback> callbacks = mEnabledOnKeyguardCallbacks; for (int i = 0; i < callbacks.size(); i++) { callbacks.get(i).notify(BiometricSourceType.FACE, mFaceEnabledOnKeyguard.getOrDefault(userId, DEFAULT_KEYGUARD_ENABLED)); } } } private final class EnabledOnKeyguardCallback implements IBinder.DeathRecipient { Loading Loading @@ -809,6 +813,7 @@ public class BiometricService extends SystemService { @Override public void onUserSwitchComplete(int newUserId) { mSettingObserver.updateContentObserver(); mSettingObserver.notifyEnabledOnKeyguardCallbacks(newUserId); } }, BiometricService.class.getName() ); Loading