mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-07-15 08:00:29 +03:00
Gif media not animated by default
This commit is contained in:
parent
fd00042f4d
commit
ea6cb35b73
3 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue