Added a fix for negative timestamps on toots.
This commit is contained in:
parent
a80392ef9c
commit
22dfd4e292
|
@ -576,8 +576,11 @@ public class Helper {
|
||||||
return context.getResources().getQuantityString(R.plurals.date_hours, (int)hours, (int)hours);
|
return context.getResources().getQuantityString(R.plurals.date_hours, (int)hours, (int)hours);
|
||||||
else if(minutes > 0)
|
else if(minutes > 0)
|
||||||
return context.getResources().getQuantityString(R.plurals.date_minutes, (int)minutes, (int)minutes);
|
return context.getResources().getQuantityString(R.plurals.date_minutes, (int)minutes, (int)minutes);
|
||||||
else
|
else {
|
||||||
return context.getResources().getQuantityString(R.plurals.date_seconds, (int)seconds, (int)seconds);
|
if (seconds < 0)
|
||||||
|
seconds = 0;
|
||||||
|
return context.getResources().getQuantityString(R.plurals.date_seconds, (int) seconds, (int) seconds);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/***
|
/***
|
||||||
|
|
Loading…
Reference in New Issue