Refresh biometric preference controllers on lifecycle events.
Fix: 195961101 Test: make RunSettingsRoboTests Test: manual (enroll via settings and verify preferences enabled after enrolling) Change-Id: Ie50cd862a42c96eb95f2156a33f34748b2b8b50c
This commit is contained in:
@@ -18,6 +18,8 @@ package com.android.settings.biometrics.combination;
|
||||
import android.content.Context;
|
||||
import android.os.UserHandle;
|
||||
|
||||
import androidx.lifecycle.Lifecycle;
|
||||
|
||||
/**
|
||||
* Preference controller for face settings within the biometrics settings page of work profile,
|
||||
* that controls the ability to unlock the phone with face authentication.
|
||||
@@ -29,6 +31,11 @@ public class BiometricFaceProfileStatusPreferenceController extends
|
||||
super(context, key);
|
||||
}
|
||||
|
||||
public BiometricFaceProfileStatusPreferenceController(
|
||||
Context context, String key, Lifecycle lifecycle) {
|
||||
super(context, key, lifecycle);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isUserSupported() {
|
||||
return mProfileChallengeUserId != UserHandle.USER_NULL
|
||||
|
Reference in New Issue
Block a user