Commit 6d27fa61 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy

Fix video card / list length display

parent 6c8dcf83
......@@ -114,6 +114,7 @@
vlc:layout_constraintEnd_toStartOf="@+id/item_more"
vlc:layout_constraintStart_toStartOf="@+id/ml_item_title"
android:layout_marginBottom="2dp"
android:ellipsize="end"
android:gravity="start"
style="@style/VLC.TextViewDescription"
android:textColor="@color/grey50"
......
......@@ -117,15 +117,18 @@
<TextView
android:id="@+id/ml_item_time"
style="@style/VLC.TextViewDescription"
android:layout_width="0dp"
android:layout_height="wrap_content"
vlc:layout_constraintStart_toEndOf="@+id/ml_item_thumbnail"
vlc:layout_constraintBottom_toTopOf="@+id/ml_item_progress"
vlc:layout_constraintStart_toStartOf="@+id/ml_item_title"
style="@style/VLC.TextViewDescription"
android:layout_alignWithParentIfMissing="true"
android:layout_marginStart="16dp"
android:layout_marginLeft="16dp"
android:gravity="start"
android:text="@{time}"
android:layout_alignWithParentIfMissing="true" />
vlc:layout_constraintTop_toBottomOf="@+id/ml_item_title"
vlc:layout_constraintBottom_toTopOf="@+id/ml_item_progress"
vlc:layout_constraintEnd_toStartOf="@+id/item_more"
vlc:layout_constraintStart_toEndOf="@+id/ml_item_thumbnail" />
<ProgressBar
android:id="@+id/ml_item_progress"
......
......@@ -161,7 +161,7 @@ class VideoListAdapter internal constructor(
if (TextUtils.isEmpty(resolution))
text = Tools.millisToText(media.length)
else
text = Tools.millisToText(media.length) + " | " + resolution
text = Tools.millisToString(media.length, true, false) + " | " + resolution
} else
text = resolution
seen = if (mIsSeenMediaMarkerVisible) media.seen else 0L
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment