mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-02-13 19:05:39 +01:00
Instantiate preview image only if not null
Prevents BitmapDrawable logging spam on android 15
This commit is contained in:
parent
321d71da7a
commit
50fda01a56
@ -94,7 +94,10 @@ public abstract class AbstractItemAdapter<T> extends ArrayAdapter<T> {
|
||||
detailsView.setText(getDetails(item));
|
||||
iconView.setImageResource(getIcon(item));
|
||||
iconView.setBackgroundColor(backgroundColor);
|
||||
previewView.setImageBitmap(getPreview(item));
|
||||
final Bitmap preview = getPreview(item);
|
||||
if (preview != null) {
|
||||
previewView.setImageBitmap(preview);
|
||||
}
|
||||
|
||||
return view;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user