Added a fix for negative timestamps on toots.
This commit is contained in:
parent
a80392ef9c
commit
22dfd4e292
|
@ -576,9 +576,12 @@ 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
|
||||
else {
|
||||
if (seconds < 0)
|
||||
seconds = 0;
|
||||
return context.getResources().getQuantityString(R.plurals.date_seconds, (int) seconds, (int) seconds);
|
||||
}
|
||||
}
|
||||
|
||||
/***
|
||||
* Toast message depending of the status code and the initial action
|
||||
|
|
Loading…
Reference in New Issue