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

Commit e5c9b451 authored by Adam Bookatz's avatar Adam Bookatz Committed by Android (Google) Code Review
Browse files

Merge "getProfileIdsLU uses internal UserProperties" into main

parents fbb15392 48e7f132
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1719,11 +1719,10 @@ public class UserManagerService extends IUserManager.Stub {
    }

    private boolean isProfileHidden(int userId) {
        UserProperties userProperties = getUserPropertiesCopy(userId);
        if (android.os.Flags.allowPrivateProfile()
                && android.multiuser.Flags.enableHidingProfiles()
                && android.multiuser.Flags.enablePrivateSpaceFeatures()) {
            return userProperties.getProfileApiVisibility()
            return getUserPropertiesInternal(userId).getProfileApiVisibility()
                    == UserProperties.PROFILE_API_VISIBILITY_HIDDEN;
        }
        return false;