fixed last_seen_now
This commit is contained in:
parent
fc656c5571
commit
3fd371cd53
|
@ -236,7 +236,7 @@
|
|||
<string name="hours">hours</string>
|
||||
<string name="mins">mins</string>
|
||||
<string name="missing_public_keys">Missing public key announcements</string>
|
||||
<string name="last_seen_now">last seen %d ago</string>
|
||||
<string name="last_seen_now">last seen just now</string>
|
||||
<string name="last_seen_mins">last seen %d minutes ago</string>
|
||||
<string name="last_seen_hours">last seen %d hours ago</string>
|
||||
<string name="last_seen_days">last seen %d days ago</string>
|
||||
|
|
|
@ -78,7 +78,7 @@ public class UIHelper {
|
|||
}
|
||||
long difference = (System.currentTimeMillis() - time) / 1000;
|
||||
if (difference < 60) {
|
||||
return context.getString(R.string.just_now);
|
||||
return context.getString(R.string.last_seen_now);
|
||||
} else if (difference < 60 * 90) {
|
||||
return context.getString(R.string.last_seen_mins,difference/60);
|
||||
} else if (difference < 60 * 60 * 36) {
|
||||
|
|
Loading…
Reference in New Issue