mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-28 22:53:11 +02:00
Samsung phones don't seem to have a . after hr and min
This commit is contained in:
@@ -22,6 +22,8 @@ fun timeAgo(mills: Long?, context: Context): String {
|
|||||||
.replace(" hr. ago", context.getString(R.string.h))
|
.replace(" hr. ago", context.getString(R.string.h))
|
||||||
.replace(" min. ago", context.getString(R.string.m))
|
.replace(" min. ago", context.getString(R.string.m))
|
||||||
.replace(" days ago", context.getString(R.string.d))
|
.replace(" days ago", context.getString(R.string.d))
|
||||||
|
.replace(" hr ago", context.getString(R.string.h))
|
||||||
|
.replace(" min ago", context.getString(R.string.m))
|
||||||
.replace("Yesterday", "1" + context.getString(R.string.d))
|
.replace("Yesterday", "1" + context.getString(R.string.d))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user