Skip to content
Snippets Groups Projects
Commit 960e41bd authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Fix TV item progress text when media is played or not started

parent 2f58ae8d
No related branches found
No related tags found
1 merge request!902Fix TV item progress text when media is played or not started
Pipeline #66864 passed with stage
in 18 minutes and 1 second
......@@ -43,7 +43,7 @@ public class Tools {
}
public static String getProgressText(MediaWrapper media) {
long lastTime = media.getTime();
if (lastTime == 0L) return "";
if (lastTime <= 0L) return "";
return String.format("%s / %s",
millisToString(lastTime, true, false, false),
millisToString(media.getLength(), true, false, false));
......
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