mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-06-17 18:50:08 +03: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
|
@Override
|
||||||
public void onGlobalLayout() {
|
public void onGlobalLayout() {
|
||||||
holder.binding.mediaContainer.getViewTreeObserver().removeOnGlobalLayoutListener(this);
|
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) {
|
if (adapter != null && statusList != null) {
|
||||||
adapter.notifyItemChanged(0, statusList.size());
|
adapter.notifyItemChanged(0, statusList.size());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue