Fix "Skip lock screen" not working for secondary user

Bug: 140878309
Test: the option is not grayed out for secondary user.
Change-Id: I2413aa3c634e89a90d104e9ad60df15e49c75ed2
(cherry picked from commit e17caeea3f)
This commit is contained in:
Ilya Matyukhin
2019-11-25 17:01:22 -08:00
parent 1284d9de67
commit 1de3feb026
2 changed files with 8 additions and 0 deletions

View File

@@ -36,6 +36,10 @@ public class FaceSettingsLockscreenBypassPreferenceController
protected FaceManager mFaceManager;
private UserManager mUserManager;
public FaceSettingsLockscreenBypassPreferenceController(Context context) {
this(context, KEY);
}
public FaceSettingsLockscreenBypassPreferenceController(Context context, String preferenceKey) {
super(context, preferenceKey);
if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FACE)) {