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

Commit eebbc977 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Updating documentation for isDefaultApplicationIcon API" into rvc-dev...

Merge "Updating documentation for isDefaultApplicationIcon API" into rvc-dev am: 9962f03b am: e2de88b6

Change-Id: I3a939a2b6180a41a011cc9d3ea6a9e5a7a57574d
parents 1ae35a61 e2de88b6
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -7853,11 +7853,16 @@ public abstract class PackageManager {
    /**
     * Returns if the provided drawable represents the default activity icon provided by the system.
     *
     * PackageManager provides a default icon for any package/activity if the app itself does not
     * define one or if the system encountered any error when loading the icon.
     * PackageManager silently returns a default application icon for any package/activity if the
     * app itself does not define one or if the system encountered any error when loading the icon.
     *
     * Developers can use this to check implement app specific logic around retrying or caching.
     *
     * @return true if the drawable represents the default activity icon, false otherwise
     * @see #getDefaultActivityIcon()
     * @see PackageItemInfo#loadDefaultIcon(PackageManager)
     * @see #getActivityIcon
     * @see LauncherActivityInfo#getIcon(int)
     */
    public boolean isDefaultApplicationIcon(@NonNull Drawable drawable) {
        int resId = drawable instanceof AdaptiveIconDrawable