Face and fingerprint unlock strings for private space
Recordings: b/326399895#comment10 Bug: 326399895 Test: Manual Change-Id: I9f4449439639c93a10475333a91059f855bce07b
This commit is contained in:
@@ -1400,6 +1400,16 @@ public final class Utils extends com.android.settingslib.Utils {
|
||||
&& userManager.isQuietModeEnabled(userHandle);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the userId is a private profile, false otherwise.
|
||||
*/
|
||||
public static boolean isPrivateProfile(int userId, @NonNull Context context) {
|
||||
final UserManager userManager = context.getSystemService(UserManager.class);
|
||||
UserInfo userInfo = userManager.getUserInfo(userId);
|
||||
return Flags.allowPrivateProfile() && android.multiuser.Flags.enablePrivateSpaceFeatures()
|
||||
&& userInfo.isPrivateProfile();
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable new edge to edge feature.
|
||||
*
|
||||
|
Reference in New Issue
Block a user