Loading app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java +1 −1 Original line number Diff line number Diff line Loading @@ -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; Loading app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusDirectMessageAdapter.java +1 −1 Original line number Diff line number Diff line Loading @@ -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)); Loading app/src/main/res/xml/pref_timelines.xml +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java +1 −1 Original line number Diff line number Diff line Loading @@ -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; Loading
app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusDirectMessageAdapter.java +1 −1 Original line number Diff line number Diff line Loading @@ -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)); Loading
app/src/main/res/xml/pref_timelines.xml +1 −1 Original line number Diff line number Diff line Loading @@ -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