mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 22:57:29 +00:00
Fix double requestLayout
This commit is contained in:
parent
548211c5a0
commit
a4e1ee69af
@ -43,7 +43,6 @@ public class DirectMessageMediaViewHolder extends DirectMessageItemViewHolder {
|
|||||||
layoutParams.width = widthHeight.first != null ? widthHeight.first : 0;
|
layoutParams.width = widthHeight.first != null ? widthHeight.first : 0;
|
||||||
layoutParams.height = widthHeight.second != null ? widthHeight.second : 0;
|
layoutParams.height = widthHeight.second != null ? widthHeight.second : 0;
|
||||||
binding.ivMediaPreview.requestLayout();
|
binding.ivMediaPreview.requestLayout();
|
||||||
binding.ivMediaPreview.requestLayout();
|
|
||||||
binding.ivMediaPreview.setImageURI(mediaModel.getThumbUrl());
|
binding.ivMediaPreview.setImageURI(mediaModel.getThumbUrl());
|
||||||
final MediaItemType modelMediaType = mediaModel.getMediaType();
|
final MediaItemType modelMediaType = mediaModel.getMediaType();
|
||||||
binding.typeIcon.setVisibility(modelMediaType == MediaItemType.MEDIA_TYPE_VIDEO || modelMediaType == MediaItemType.MEDIA_TYPE_SLIDER
|
binding.typeIcon.setVisibility(modelMediaType == MediaItemType.MEDIA_TYPE_VIDEO || modelMediaType == MediaItemType.MEDIA_TYPE_SLIDER
|
||||||
|
Loading…
Reference in New Issue
Block a user