mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-02-24 01:49:45 +02:00
remove freezes
This commit is contained in:
parent
0bd1a8e5de
commit
187d20cc15
1 changed files with 5 additions and 1 deletions
|
@ -1426,7 +1426,11 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
|||
@Override
|
||||
public void onGlobalLayout() {
|
||||
holder.binding.mediaContainer.getViewTreeObserver().removeOnGlobalLayoutListener(this);
|
||||
measuredWidth = holder.binding.mediaContainer.getWidth();
|
||||
if (fullAttachement) {
|
||||
measuredWidth = holder.binding.mediaContainer.getWidth();
|
||||
} else {
|
||||
measuredWidth = holder.binding.media.mediaContainer.getWidth();
|
||||
}
|
||||
if (adapter != null && statusList != null) {
|
||||
adapter.notifyItemChanged(0, statusList.size());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue