Commit 034af7a9 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Geoffrey Métais

Fix video card / list length display

(cherry picked from commit 6d27fa61)
parent 8dfcc6a2
......@@ -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"
......
......@@ -174,7 +174,7 @@ public class VideoListAdapter extends DiffUtilAdapter<MediaWrapper, VideoListAda
progress = (int) (lastTime / 1000);
}
if (TextUtils.isEmpty(resolution)) text = Tools.millisToText(media.getLength());
else text = Tools.millisToText(media.getLength())+" | "+resolution;
else text = Tools.millisToString(media.getLength(), true, false)+" | "+resolution;
} else text = resolution;
seen = mIsSeenMediaMarkerVisible ? media.getSeen() : 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