Show "Start" in chapters FAB if nothing is read yet
(cherry picked from commit f9baff0e90afe4b3f52ebe5da9aa4474d3d2f1c8) # Conflicts: # app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersController.kt
This commit is contained in:
parent
13d04310e6
commit
1ca94a0ea8
@ -379,8 +379,8 @@ class MangaAllInOneController :
|
||||
actionMode?.invalidate()
|
||||
}
|
||||
|
||||
if (!chapters.any { it.read }) {
|
||||
binding.fab.text = activity!!.getString(R.string.action_start)
|
||||
if (view.context != null && chapters.any { it.read }) {
|
||||
binding.fab.text = view.context.getString(R.string.action_resume)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -299,8 +299,9 @@ class ChaptersController :
|
||||
actionMode?.invalidate()
|
||||
}
|
||||
|
||||
if (!chapters.any { it.read }) {
|
||||
binding.fab.text = activity!!.getString(R.string.action_start)
|
||||
val context = view?.context
|
||||
if (context != null && chapters.any { it.read }) {
|
||||
binding.fab.text = context.getString(R.string.action_resume)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@
|
||||
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
||||
android:id="@+id/fab"
|
||||
style="@style/Theme.Widget.FAB"
|
||||
android:text="@string/action_resume"
|
||||
android:text="@string/action_start"
|
||||
app:icon="@drawable/ic_play_arrow_24dp"
|
||||
app:layout_anchor="@id/recycler" />
|
||||
|
||||
|
@ -76,6 +76,7 @@
|
||||
<string name="action_next_chapter">Next chapter</string>
|
||||
<string name="action_retry">Retry</string>
|
||||
<string name="action_remove">Remove</string>
|
||||
<string name="action_start">Start</string>
|
||||
<string name="action_resume">Resume</string>
|
||||
<string name="action_move">Move</string>
|
||||
<string name="action_open_in_browser">Open in browser</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user