mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-01-03 06:30:07 +02:00
Crash when several gif in same message
This commit is contained in:
parent
8b1d7d11fe
commit
c646e9136c
1 changed files with 2 additions and 2 deletions
|
@ -1625,7 +1625,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
|||
ratio = measuredWidth > 0 ? measuredWidth / mediaW : 1.0f;
|
||||
}
|
||||
}
|
||||
if (autoplaygif && attachment.type.equalsIgnoreCase("gifv")) {
|
||||
if (autoplaygif && attachment.type.equalsIgnoreCase("gifv") && mediaPosition == 1) {
|
||||
|
||||
layoutMediaBinding.media.setVisibility(View.GONE);
|
||||
layoutMediaBinding.mediaVideo.setVisibility(View.VISIBLE);
|
||||
|
@ -1702,7 +1702,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
|||
|
||||
} else {
|
||||
layoutMediaBinding.mediaRoot.setLayoutParams(new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT));
|
||||
if (autoplaygif && attachment.type.equalsIgnoreCase("gifv") && !statusToDeal.sensitive) {
|
||||
if (autoplaygif && attachment.type.equalsIgnoreCase("gifv") && !statusToDeal.sensitive && mediaPosition == 1) {
|
||||
layoutMediaBinding.media.setVisibility(View.GONE);
|
||||
layoutMediaBinding.mediaVideo.setVisibility(View.VISIBLE);
|
||||
layoutMediaBinding.mediaVideo.onResume();
|
||||
|
|
Loading…
Reference in a new issue