forked from mirrors/Fedilab
Some fixes
This commit is contained in:
parent
31025af9ab
commit
098e2d87ec
3 changed files with 11 additions and 2 deletions
|
@ -464,7 +464,7 @@ public class PinnedTimelineHelper {
|
||||||
break;
|
break;
|
||||||
case NITTER:
|
case NITTER:
|
||||||
item.setIcon(R.drawable.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);
|
item.setTitle(pinnedTimeline.remoteInstance.displayName);
|
||||||
} else {
|
} else {
|
||||||
item.setTitle(pinnedTimeline.remoteInstance.host);
|
item.setTitle(pinnedTimeline.remoteInstance.host);
|
||||||
|
|
|
@ -2615,7 +2615,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
||||||
holder.bindingArt.artMedia.setScaleType(ImageView.ScaleType.FIT_CENTER);
|
holder.bindingArt.artMedia.setScaleType(ImageView.ScaleType.FIT_CENTER);
|
||||||
holder.bindingArt.artMedia.setLayoutParams(lp);
|
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<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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
Added:
|
||||||
|
|
||||||
|
|
||||||
|
Changed:
|
||||||
|
|
||||||
|
|
||||||
|
Fixed:
|
||||||
|
- Fix a crash with Art timelines
|
||||||
|
- Fix a crash with pinned timelines
|
Loading…
Reference in a new issue