Ensure feature is supported and enabled. am: a96a84e256
am: 00c05fc246
Change-Id: I524966c3163a9dff1c1d7f7a4da496e8a08fb66e
This commit is contained in:
@@ -33,6 +33,11 @@ public class FaceProfileStatusPreferenceController extends FaceStatusPreferenceC
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getAvailabilityStatus() {
|
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
|
// Make the profile unsearchable so the user preference controller gets highlighted
|
||||||
// when searched for.
|
// when searched for.
|
||||||
return AVAILABLE_UNSEARCHABLE;
|
return AVAILABLE_UNSEARCHABLE;
|
||||||
|
|||||||
Reference in New Issue
Block a user