Renamed StringUtil.formatDuration to formatDurationMSS
This commit is contained in:
@@ -61,7 +61,7 @@ public class PlayQueueInfo {
|
||||
durationSeconds += entry.getDuration();
|
||||
}
|
||||
}
|
||||
return StringUtil.formatDuration(durationSeconds);
|
||||
return StringUtil.formatDurationMSS(durationSeconds);
|
||||
}
|
||||
|
||||
public boolean isStopEnabled() {
|
||||
|
||||
+1
-1
@@ -89,7 +89,7 @@ public class VideoPlayerController {
|
||||
public static Map<String, Integer> createSkipOffsets(int durationSeconds) {
|
||||
LinkedHashMap<String, Integer> result = new LinkedHashMap<String, Integer>();
|
||||
for (int i = 0; i < durationSeconds; i += 60) {
|
||||
result.put(StringUtil.formatDuration(i), i);
|
||||
result.put(StringUtil.formatDurationMSS(i), i);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ public class Playlist {
|
||||
}
|
||||
|
||||
public String getDurationAsString() {
|
||||
return StringUtil.formatDuration(durationSeconds);
|
||||
return StringUtil.formatDurationMSS(durationSeconds);
|
||||
}
|
||||
|
||||
public Date getCreated() {
|
||||
|
||||
@@ -228,7 +228,7 @@ public final class StringUtil {
|
||||
/**
|
||||
* Formats a duration with minutes and seconds, e.g., "93:45"
|
||||
*/
|
||||
public static String formatDuration(int seconds) {
|
||||
public static String formatDurationMSS(int seconds) {
|
||||
int minutes = seconds / 60;
|
||||
int secs = seconds % 60;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user