Commit ea6cb35b authored by Thomas's avatar Thomas
Browse files

Gif media not animated by default

parent fd00042f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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));
+1 −1
Original line number Diff line number Diff line
@@ -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"