Some updates

This commit is contained in:
Thomas 2023-02-27 10:24:13 +01:00
parent 737ba73cea
commit 34c81cec76
3 changed files with 21 additions and 7 deletions

View File

@ -446,9 +446,9 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
LinearLayoutCompat.MarginLayoutParams pmc = (LinearLayoutCompat.MarginLayoutParams) holder.binding.mediaContainer.getLayoutParams();
pmc.setMarginStart((int) Helper.convertDpToPixel(6, context));
holder.binding.mediaContainer.setLayoutParams(pmc);
LinearLayoutCompat.MarginLayoutParams pal = (LinearLayoutCompat.MarginLayoutParams) holder.binding.media.mediaContainer.getLayoutParams();
LinearLayoutCompat.MarginLayoutParams pal = (LinearLayoutCompat.MarginLayoutParams) holder.binding.mediaCroppedContainer.getLayoutParams();
pal.setMarginStart((int) Helper.convertDpToPixel(6, context));
holder.binding.media.mediaContainer.setLayoutParams(pal);
holder.binding.mediaCroppedContainer.setLayoutParams(pal);
LinearLayoutCompat.MarginLayoutParams pp = (LinearLayoutCompat.MarginLayoutParams) holder.binding.poll.pollContainer.getLayoutParams();
pp.setMarginStart((int) Helper.convertDpToPixel(6, context));
holder.binding.poll.pollContainer.setLayoutParams(pp);

View File

@ -457,15 +457,21 @@
android:visibility="gone" />
<include
android:id="@+id/media"
layout="@layout/layout_drawer_attachments"
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/media_cropped_container"
android:layout_marginStart="48dp"
android:layout_marginTop="6dp"
android:layout_marginEnd="6dp"
android:visibility="gone" />
android:layout_marginEnd="6dp">
<include
android:id="@+id/media"
layout="@layout/layout_drawer_attachments"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone" />
</androidx.appcompat.widget.LinearLayoutCompat>
<include

View File

@ -0,0 +1,8 @@
Added:
Changed:
- Align media with text (left margin enabled)
Fixed:
- Media previews remain the same when sharing
- Several crashes