From df77d717c33584f8fa04cb3780af68d38269cdf5 Mon Sep 17 00:00:00 2001 From: Kenny Guy Date: Fri, 29 May 2015 17:02:22 +0100 Subject: [PATCH] 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 --- core/java/android/content/pm/PackageManager.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java index 2ca030635ef53..f708b088609a3 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)}. *

* If the original drawable is a BitmapDrawable and the backing bitmap is