Added a fix for negative timestamps on toots.

This commit is contained in:
PhotonQyv 2017-12-09 15:11:02 +00:00
parent a80392ef9c
commit 22dfd4e292
1 changed files with 5 additions and 2 deletions

View File

@ -576,8 +576,11 @@ public class Helper {
return context.getResources().getQuantityString(R.plurals.date_hours, (int)hours, (int)hours);
else if(minutes > 0)
return context.getResources().getQuantityString(R.plurals.date_minutes, (int)minutes, (int)minutes);
else
return context.getResources().getQuantityString(R.plurals.date_seconds, (int)seconds, (int)seconds);
else {
if (seconds < 0)
seconds = 0;
return context.getResources().getQuantityString(R.plurals.date_seconds, (int) seconds, (int) seconds);
}
}
/***