Skip to content

Commit

Permalink
fixed missing space in stats
Browse files Browse the repository at this point in the history
  • Loading branch information
thasmin committed Jun 6, 2014
1 parent a9bd8e7 commit 3642145
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/axelby/podax/Stats.java
Expand Up @@ -33,13 +33,17 @@ public static String getTimeString(Context context) {
}
if (listenSeconds > secondsPerHour) {
int hours = (int) Math.floor(listenSeconds / secondsPerHour);
if (listenText.length() > 0)
listenText.append(" ");
listenText.append(hours);
listenText.append(" ");
listenText.append(context.getResources().getQuantityString(R.plurals.hours, hours));
listenSeconds = listenSeconds % secondsPerHour;
}
if (listenSeconds > secondsPerMinute) {
int minutes = (int) Math.floor(listenSeconds / secondsPerMinute);
if (listenText.length() > 0)
listenText.append(" ");
listenText.append(minutes);
listenText.append(" ");
listenText.append(context.getResources().getQuantityString(R.plurals.minutes, minutes));
Expand Down

0 comments on commit 3642145

Please sign in to comment.