summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/pm
diff options
context:
space:
mode:
authorKenny Guy <kennyguy@google.com>2015-05-29 17:02:22 +0100
committerKenny Guy <kennyguy@google.com>2015-05-29 17:08:52 +0100
commitdf77d717c33584f8fa04cb3780af68d38269cdf5 (patch)
tree2bf5f1a25ff9171f739a630935c41b4d339dcbbd /core/java/android/content/pm
parent97bf518f7b818d297a500204627d1ad06127bff1 (diff)
downloadframeworks_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.java9
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