Remove highlighting for work profile

Test: Manual.
Fixes: 137126517
Change-Id: Iefcbf498cc0805cd130981e522177a7c16b7adfc
This commit is contained in:
joshmccloskey
2019-07-09 15:23:37 -07:00
parent f461d8dc52
commit 85081a4f7e

View File

@@ -31,6 +31,13 @@ public class FaceProfileStatusPreferenceController extends FaceStatusPreferenceC
super(context, KEY_FACE_SETTINGS);
}
@Override
public int getAvailabilityStatus() {
// Make the profile unsearchable so the user preference controller gets highlighted
// when searched for.
return AVAILABLE_UNSEARCHABLE;
}
@Override
protected boolean isUserSupported() {
return mProfileChallengeUserId != UserHandle.USER_NULL