Changed Updates headers to "Fetched _x_" instead of "Added _x_"

This commit is contained in:
Jays2Kings 2021-04-21 01:17:40 -04:00
parent 49bd889fcc
commit 7f818e0735
2 changed files with 4 additions and 3 deletions

View File

@ -45,12 +45,12 @@ class DateItem(val date: Date, val addedString: Boolean = false) : AbstractHeade
private val now = Date().time
val section_text: TextView = view.findViewById(R.id.section_text)
private val sectionText: TextView = view.findViewById(R.id.section_text)
fun bind(item: DateItem) {
val dateString = DateUtils.getRelativeTimeSpanString(item.date.time, now, DateUtils.DAY_IN_MILLIS)
section_text.text =
if (item.addedString) itemView.context.getString(R.string.added_, dateString) else dateString
sectionText.text =
if (item.addedString) itemView.context.getString(R.string.fetched_, dateString) else dateString
}
}
}

View File

@ -224,6 +224,7 @@
<string name="read_">Read %1$s</string>
<string name="updated_">Updated %1$s</string>
<string name="added_">Added %1$s</string>
<string name="fetched_">Fetched %1$s</string>
<string name="view_history">View history</string>
<string name="view_all_updates">View all updates</string>
<string name="search_recents">Search recents…</string>