Commit 34c81cec authored by Thomas's avatar Thomas
Browse files

Some updates

parent 737ba73c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
+11 −5
Original line number Diff line number Diff line
@@ -457,15 +457,21 @@
            android:visibility="gone" />


        <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">

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


        <include
+8 −0
Original line number Diff line number Diff line
Added:

Changed:
- Align media with text (left margin enabled)

Fixed:
- Media previews remain the same when sharing
- Several crashes
 No newline at end of file