aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/go4cache/Go4CacheUser.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/go4cache/Go4CacheUser.java')
-rw-r--r--main/src/cgeo/geocaching/go4cache/Go4CacheUser.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/go4cache/Go4CacheUser.java b/main/src/cgeo/geocaching/go4cache/Go4CacheUser.java
index 5bdc209..606d8f3 100644
--- a/main/src/cgeo/geocaching/go4cache/Go4CacheUser.java
+++ b/main/src/cgeo/geocaching/go4cache/Go4CacheUser.java
@@ -84,15 +84,15 @@ public class Go4CacheUser {
if (null == actionForDisplay) {
getGeocodeAndAction();
}
- return actionForDisplay + getTime();
+ return actionForDisplay + getTime() + ".";
}
private String getTime() {
- long minutes = (System.currentTimeMillis() - date.getTime()) / 60000;
+ int minutes = (int) ((System.currentTimeMillis() - date.getTime()) / 60000);
if (minutes < 0) {
minutes = 0;
}
- return " " + minutes + " " + res.getString(R.string.go4cache_minutes);
+ return " (" + res.getQuantityString(R.plurals.go4cache_time_minutes, minutes, minutes) + ")";
}
public String getGeocode() {