Some fixes

This commit is contained in:
Thomas 2023-01-12 09:54:43 +01:00
parent 31025af9ab
commit 098e2d87ec
3 changed files with 11 additions and 2 deletions

View file

@ -464,7 +464,7 @@ public class PinnedTimelineHelper {
break;
case NITTER:
item.setIcon(R.drawable.nitter);
if (pinnedTimeline.remoteInstance.displayName.trim().length() > 0) {
if (pinnedTimeline.remoteInstance.displayName != null && pinnedTimeline.remoteInstance.displayName.trim().length() > 0) {
item.setTitle(pinnedTimeline.remoteInstance.displayName);
} else {
item.setTitle(pinnedTimeline.remoteInstance.host);

View file

@ -2615,7 +2615,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
holder.bindingArt.artMedia.setScaleType(ImageView.ScaleType.FIT_CENTER);
holder.bindingArt.artMedia.setLayoutParams(lp);
RequestBuilder<Drawable> requestBuilder = prepareRequestBuilder(context, status.art_attachment, mediaW * ratio, mediaH * ratio, 1.0f, 1.0f, status.sensitive, true);
requestBuilder.into(holder.bindingArt.artMedia);
requestBuilder.load(status.art_attachment.preview_url).into(holder.bindingArt.artMedia);
}
}

View file

@ -0,0 +1,9 @@
Added:
Changed:
Fixed:
- Fix a crash with Art timelines
- Fix a crash with pinned timelines