Merge "Set face unlock toggle to unchecked when disabled by admin" into rvc-dev am: a2d56af9bd am: ea63b90c3d am: 4b997ee9fd am: 599f02eab1
Change-Id: I9349594dd1e6e65c441f45563b7add8453ae5aea
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