String Formatting Fixes (#3118)

String Formatting Fixes
This commit is contained in:
MCAxiaz
2020-05-08 18:44:01 -07:00
committed by GitHub
parent 40776bdc8d
commit a20874f6a1
3 changed files with 7 additions and 5 deletions

View File

@@ -58,8 +58,9 @@ class HistoryHolder(
// Set chapter number + timestamp
val formattedNumber = adapter.decimalFormat.format(chapter.chapter_number.toDouble())
manga_subtitle.text = itemView.context.getString(R.string.recent_manga_time)
.format(formattedNumber, Date(history.last_read).toTimestampString())
manga_subtitle.text = itemView.context.getString(
R.string.recent_manga_time, formattedNumber, Date(history.last_read).toTimestampString()
)
// Set cover
GlideApp.with(itemView.context).clear(cover)