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

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

Require attention pref not searchable by default am: 593b5671 am: 44101914 am: d227833d

Change-Id: I6d6e42e3424ad005d33895171e8ffff914fb195f
parents 593f6219 d227833d
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;
                }
            };
}