From 0b5d0c7f87a2b71aba6fb1d2452cb9907bdfd9c6 Mon Sep 17 00:00:00 2001 From: Adam Bookatz Date: Thu, 3 Mar 2022 17:50:07 +0000 Subject: [PATCH] Document isManagedProfile usage should probably be isProfile Much usage of isManagedProfile should probably really be isProfile instead, so have the javadoc explicitly point to it. Bug: 170249807 Change-Id: Ia6c3cc6d052f2b9f6581fd160410b9ef601c3bcf Test: N/A (just doc) --- core/java/android/os/UserManager.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java index e56f214e30d9a..db3550542086c 100644 --- a/core/java/android/os/UserManager.java +++ b/core/java/android/os/UserManager.java @@ -2574,6 +2574,9 @@ public class UserManager { /** * Checks if the context user is a managed profile. * + * Note that this applies specifically to managed profiles. For profiles in general, + * use {@link #isProfile()} instead. + * * @return whether the context user is a managed profile. */ @UserHandleAware( @@ -2593,6 +2596,9 @@ public class UserManager { * {@link android.Manifest.permission#QUERY_USERS} permission, otherwise the caller * must be in the same profile group of specified user. * + * Note that this applies specifically to managed profiles. For profiles in general, + * use {@link #isProfile()} instead. + * * @return whether the specified user is a managed profile. * @hide */