Manga chapters Fab will say start if no chapters are read

This commit is contained in:
Jobobby04 2020-05-28 20:13:33 -04:00
parent 806759b8ea
commit 3c3f057dcc
3 changed files with 9 additions and 0 deletions

View File

@ -378,6 +378,10 @@ class MangaAllInOneController :
} }
actionMode?.invalidate() actionMode?.invalidate()
} }
if (!chapters.any { it.read }) {
binding.fab.text = activity!!.getString(R.string.action_start)
}
} }
override fun openInWebView() { override fun openInWebView() {

View File

@ -297,6 +297,10 @@ class ChaptersController :
} }
actionMode?.invalidate() actionMode?.invalidate()
} }
if (!chapters.any { it.read }) {
binding.fab.text = activity!!.getString(R.string.action_start)
}
} }
private fun fetchChaptersFromSource(manualFetch: Boolean = false) { private fun fetchChaptersFromSource(manualFetch: Boolean = false) {

View File

@ -15,6 +15,7 @@
<string name="action_search_manually">Search manually</string> <string name="action_search_manually">Search manually</string>
<string name="action_migrate_now">Migrate now</string> <string name="action_migrate_now">Migrate now</string>
<string name="action_copy_now">Copy now</string> <string name="action_copy_now">Copy now</string>
<string name="action_start">Start</string>
<!-- Preferences --> <!-- Preferences -->
<!-- Filter --> <!-- Filter -->