(Context context, int minutes)
| 2507 | } |
| 2508 | |
| 2509 | static String formatHour(Context context, int minutes) { |
| 2510 | Calendar cal = Calendar.getInstance(); |
| 2511 | cal.set(Calendar.HOUR_OF_DAY, minutes / 60); |
| 2512 | cal.set(Calendar.MINUTE, minutes % 60); |
| 2513 | cal.set(Calendar.SECOND, 0); |
| 2514 | cal.set(Calendar.MILLISECOND, 0); |
| 2515 | return Helper.getTimeInstance(context, SimpleDateFormat.SHORT).format(cal.getTime()); |
| 2516 | } |
| 2517 | |
| 2518 | static String formatDuration(long ms) { |
| 2519 | return formatDuration(ms, true); |
no test coverage detected