Fall back when failing to load size restricted icon
Bug: 226295380 Test: Notification still looks good. Change-Id: Iff1b5ea18253bdc660731382da961f6b99ba33bd
This commit is contained in:
@@ -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