commit | 00c05fc2461364e794cbf18e49a0d86c3eb09f73 | [log] [tgz] |
---|---|---|
author | joshmccloskey <joshmccloskey@google.com> | Thu Jul 11 14:56:10 2019 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Thu Jul 11 14:56:10 2019 -0700 |
tree | fc00c61222eafa35a753cd61346b81433c920740 | |
parent | 5dbcfc9d276626a12099888c90d20e85be642658 [diff] | |
parent | a96a84e2565394dba671478a1a105ae41f38cd2f [diff] |
Ensure feature is supported and enabled. am: a96a84e256 Change-Id: I5a1870ed55326fb9e8a5616ffa279bccc42b04ff
diff --git a/src/com/android/settings/biometrics/face/FaceProfileStatusPreferenceController.java b/src/com/android/settings/biometrics/face/FaceProfileStatusPreferenceController.java index eeb2cbf..56b325b 100644 --- a/src/com/android/settings/biometrics/face/FaceProfileStatusPreferenceController.java +++ b/src/com/android/settings/biometrics/face/FaceProfileStatusPreferenceController.java
@@ -33,6 +33,11 @@ @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;