diff options
author | Kenny Guy <kennyguy@google.com> | 2015-05-29 17:02:22 +0100 |
---|---|---|
committer | Kenny Guy <kennyguy@google.com> | 2015-05-29 17:08:52 +0100 |
commit | df77d717c33584f8fa04cb3780af68d38269cdf5 (patch) | |
tree | 2bf5f1a25ff9171f739a630935c41b4d339dcbbd /core/java/android/content/pm | |
parent | 97bf518f7b818d297a500204627d1ad06127bff1 (diff) | |
download | frameworks_base-df77d717c33584f8fa04cb3780af68d38269cdf5.zip frameworks_base-df77d717c33584f8fa04cb3780af68d38269cdf5.tar.gz frameworks_base-df77d717c33584f8fa04cb3780af68d38269cdf5.tar.bz2 |
Correct the docs for getUserBadgedIcon
Previously it wasn't clear that it was checking
if the target user was a managed profile in the
calling user = target user case.
Bug: 21455229
Change-Id: Iedce853092d2e5de6d84b06ca0ef4849bb26df26
Diffstat (limited to 'core/java/android/content/pm')
-rw-r--r-- | core/java/android/content/pm/PackageManager.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java index 2ca0306..f708b08 100644 --- a/core/java/android/content/pm/PackageManager.java +++ b/core/java/android/content/pm/PackageManager.java @@ -3261,10 +3261,11 @@ public abstract class PackageManager { throws NameNotFoundException; /** - * If the target user is a managed profile of the calling user or the caller - * is itself a managed profile, then this returns a badged copy of the given - * icon to be able to distinguish it from the original icon. For badging an - * arbitrary drawable use {@link #getUserBadgedDrawableForDensity( + * If the target user is a managed profile of the calling user or if the + * target user is the caller and is itself a managed profile, then this + * returns a badged copy of the given icon to be able to distinguish it from + * the original icon. For badging an arbitrary drawable use + * {@link #getUserBadgedDrawableForDensity( * android.graphics.drawable.Drawable, UserHandle, android.graphics.Rect, int)}. * <p> * If the original drawable is a BitmapDrawable and the backing bitmap is |