Gif media not animated by default

This commit is contained in:
Thomas 2025-04-21 10:02:08 +02:00
parent fd00042f4d
commit ea6cb35b73
3 changed files with 3 additions and 3 deletions

View file

@ -1615,7 +1615,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
holder.binding.displayMedia.setVisibility(View.GONE);
holder.binding.media.mediaContainer.setVisibility(View.VISIBLE);
int mediaPosition = 1;
boolean autoplaygif = sharedpreferences.getBoolean(context.getString(R.string.SET_AUTO_PLAY_GIG_MEDIA), true);
boolean autoplaygif = sharedpreferences.getBoolean(context.getString(R.string.SET_AUTO_PLAY_GIG_MEDIA), false);
if (!fullAttachement || statusToDeal.sensitive) {
int defaultHeight = (int) Helper.convertDpToPixel(300, context);
int orientation = context.getResources().getConfiguration().orientation;

View file

@ -605,7 +605,7 @@ public class StatusDirectMessageAdapter extends RecyclerView.Adapter<RecyclerVie
video.getPlayer().release();
}
holder.binding.media.media4Container.removeAllViews();
boolean autoplaygif = sharedpreferences.getBoolean(context.getString(R.string.SET_AUTO_PLAY_GIG_MEDIA), true);
boolean autoplaygif = sharedpreferences.getBoolean(context.getString(R.string.SET_AUTO_PLAY_GIG_MEDIA), false);
for (Attachment attachment : status.media_attachments) {
LayoutMediaBinding layoutMediaBinding = LayoutMediaBinding.inflate(LayoutInflater.from(context));
layoutMediaBinding.mediaRoot.setLayoutParams(new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT));

View file

@ -256,7 +256,7 @@
app:title="@string/set_fit_preview" />
<SwitchPreferenceCompat
android:defaultValue="true"
android:defaultValue="false"
app:iconSpaceReserved="false"
app:key="@string/SET_AUTO_PLAY_GIG_MEDIA"
app:singleLineTitle="false"