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