Show "Start" in chapters FAB if nothing is read yet

This commit is contained in:
arkon
2020-06-13 17:15:22 -04:00
parent 6ad3fcb91d
commit f9baff0e90
3 changed files with 7 additions and 1 deletions

View File

@ -284,6 +284,11 @@ class ChaptersController :
}
actionMode?.invalidate()
}
val context = view?.context
if (context != null && chapters.any { it.read }) {
binding.fab.text = context.getString(R.string.action_resume)
}
}
private fun fetchChaptersFromSource(manualFetch: Boolean = false) {