Require attention pref not searchable by default am: 593b5671c8
am: 441019142c
am: d227833dde
Change-Id: I6d6e42e3424ad005d33895171e8ffff914fb195f
This commit is contained in:
@@ -336,7 +336,22 @@ public class FaceSettings extends DashboardFragment {
|
|||||||
keys.add(hasEnrolled ? PREF_KEY_ENROLL_FACE_UNLOCK
|
keys.add(hasEnrolled ? PREF_KEY_ENROLL_FACE_UNLOCK
|
||||||
: PREF_KEY_DELETE_FACE_DATA);
|
: PREF_KEY_DELETE_FACE_DATA);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isAttentionSupported(context)) {
|
||||||
|
keys.add(FaceSettingsAttentionPreferenceController.KEY);
|
||||||
|
}
|
||||||
|
|
||||||
return keys;
|
return keys;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private boolean isAttentionSupported(Context context) {
|
||||||
|
FaceFeatureProvider featureProvider = FeatureFactory.getFactory(
|
||||||
|
context).getFaceFeatureProvider();
|
||||||
|
boolean isAttentionSupported = false;
|
||||||
|
if (featureProvider != null) {
|
||||||
|
isAttentionSupported = featureProvider.isAttentionSupported(context);
|
||||||
|
}
|
||||||
|
return isAttentionSupported;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user