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

Commit c9e680ed authored by joshmccloskey's avatar joshmccloskey Committed by android-build-merger
Browse files

Ensure feature is supported and enabled. am: a96a84e2

am: 00c05fc2

Change-Id: I524966c3163a9dff1c1d7f7a4da496e8a08fb66e
parents d670b80d 00c05fc2
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -33,6 +33,11 @@ public class FaceProfileStatusPreferenceController extends FaceStatusPreferenceC

    @Override
    public int getAvailabilityStatus() {
        // Check if Face for Profile is available.
        final int isAvailable = super.getAvailabilityStatus();
        if (isAvailable != AVAILABLE) {
            return isAvailable;
        }
        // Make the profile unsearchable so the user preference controller gets highlighted
        // when searched for.
        return AVAILABLE_UNSEARCHABLE;