Merge "Fall back when failing to load size restricted icon" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
44df60c3f9
@@ -122,7 +122,10 @@ public class CachingIconView extends ImageView {
|
||||
public Runnable setImageIconAsync(@Nullable final Icon icon) {
|
||||
resetCache();
|
||||
Drawable drawable = loadSizeRestrictedIcon(icon);
|
||||
return () -> setImageDrawable(drawable);
|
||||
if (drawable != null) {
|
||||
return () -> setImageDrawable(drawable);
|
||||
}
|
||||
return super.setImageIconAsync(icon);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user