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

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

Ensure feature is supported and enabled.

am: a96a84e2

Change-Id: I5a1870ed55326fb9e8a5616ffa279bccc42b04ff
parents 5dbcfc9d a96a84e2
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;