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

Commit 44df60c3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fall back when failing to load size restricted icon" into tm-dev

parents 68eab3f1 e7640411
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -122,8 +122,11 @@ public class CachingIconView extends ImageView {
    public Runnable setImageIconAsync(@Nullable final Icon icon) {
        resetCache();
        Drawable drawable = loadSizeRestrictedIcon(icon);
        if (drawable != null) {
            return () -> setImageDrawable(drawable);
        }
        return super.setImageIconAsync(icon);
    }

    @Override
    @RemotableViewMethod(asyncImpl="setImageResourceAsync")