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

Commit df77d717 authored by Kenny Guy's avatar Kenny Guy
Browse files

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
parent 97bf518f
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -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