Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 44101914 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Require attention pref not searchable by default am: 593b5671

Change-Id: I2f3103877ddca02910682d30deac7cd8bf62f664
parents f4ca410a 593b5671
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -336,7 +336,22 @@ public class FaceSettings extends DashboardFragment {
                        keys.add(hasEnrolled ? PREF_KEY_ENROLL_FACE_UNLOCK
                                : PREF_KEY_DELETE_FACE_DATA);
                    }

                    if (!isAttentionSupported(context)) {
                        keys.add(FaceSettingsAttentionPreferenceController.KEY);
                    }

                    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;
                }
            };
}