Skip to content
Snippets Groups Projects
Commit 034af7a9 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Geoffrey Métais
Browse files

Fix video card / list length display

(cherry picked from commit 6d27fa61)
parent 8dfcc6a2
No related branches found
No related tags found
No related merge requests found
Pipeline #6079 passed with stage
in 3 minutes and 54 seconds
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment