Display correct string on FAB

(cherry picked from commit 319e4360c8c9c27759be81a9e3836d2e50ece9a5)
This commit is contained in:
Midyan Hamdoun 2022-02-03 18:40:39 +02:00 committed by Jobobby04
parent faaf0fbff3
commit e9f175db5d

View File

@ -462,6 +462,8 @@ class MangaController :
val fab = actionFab ?: return val fab = actionFab ?: return
if (adapter.items.any { it.read }) { if (adapter.items.any { it.read }) {
fab.text = context.getString(R.string.action_resume) fab.text = context.getString(R.string.action_resume)
} else {
fab.text = context.getString(R.string.action_start)
} }
if (adapter.items.any { !it.read }) { if (adapter.items.any { !it.read }) {
fab.show() fab.show()