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

Commit 4917b0dc authored by Michael Jurka's avatar Michael Jurka
Browse files

Handling Resources.NotFoundException in Recents

parent 6f2e4d10
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -318,7 +318,11 @@ public class RecentsPanelView extends RelativeLayout
    }

    private Drawable getFullResIcon(Resources resources, int iconId) {
        try {
            return resources.getDrawableForDensity(iconId, mIconDpi);
        } catch (Resources.NotFoundException e) {
            return getFullResDefaultActivityIcon();
        }
    }

    private Drawable getFullResIcon(ResolveInfo info, PackageManager packageManager) {