Merge "Set face unlock toggle to unchecked when disabled by admin" into rvc-dev am: a2d56af9bd
am: ea63b90c3d
Change-Id: Icbbe2f70adac63bf922dd66edb31760ae3efb851
This commit is contained in:
@@ -47,6 +47,11 @@ public class FaceSettingsLockscreenBypassPreferenceController
|
||||
|
||||
@Override
|
||||
public boolean isChecked() {
|
||||
if (!FaceSettings.isAvailable(mContext)) {
|
||||
return false;
|
||||
} else if (getRestrictingAdmin() != null) {
|
||||
return false;
|
||||
}
|
||||
int defaultValue = mContext.getResources().getBoolean(
|
||||
com.android.internal.R.bool.config_faceAuthDismissesKeyguard) ? 1 : 0;
|
||||
return Settings.Secure.getIntForUser(mContext.getContentResolver(),
|
||||
|
Reference in New Issue
Block a user