More fixes
This commit is contained in:
parent
a08e4e616d
commit
0ed26dbc49
@ -98,7 +98,7 @@ abstract class DialogController : Controller {
|
||||
/**
|
||||
* Dismiss the dialog and pop this controller
|
||||
*/
|
||||
private fun dismissDialog() {
|
||||
protected fun dismissDialog() {
|
||||
if (dismissed) {
|
||||
return
|
||||
}
|
||||
|
@ -474,6 +474,7 @@ class LibrarySettingsSheet(
|
||||
item.checked = !item.checked
|
||||
when (item) {
|
||||
startReadingButton -> preferences.startReadingButton().set((item.checked))
|
||||
else -> Unit
|
||||
}
|
||||
adapter.notifyItemChanged(item)
|
||||
}
|
||||
|
@ -29,6 +29,7 @@ import coil.request.ImageRequest
|
||||
import com.bluelinelabs.conductor.Controller
|
||||
import com.bluelinelabs.conductor.ControllerChangeHandler
|
||||
import com.bluelinelabs.conductor.ControllerChangeType
|
||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||
import com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
||||
import com.google.android.material.snackbar.Snackbar
|
||||
import dev.chrisbanes.insetter.applyInsetter
|
||||
|
@ -54,7 +54,7 @@ class ReaderTransitionView @JvmOverloads constructor(context: Context, attrs: At
|
||||
binding.upperText.textAlignment = TEXT_ALIGNMENT_TEXT_START
|
||||
val isPrevDownloaded = downloadManager.isChapterDownloaded(
|
||||
prevChapter,
|
||||
manga
|
||||
manga,
|
||||
)
|
||||
val isCurrentDownloaded = transition.from.pageLoader is DownloadPageLoader
|
||||
binding.upperText.text = buildSpannedString {
|
||||
@ -89,7 +89,7 @@ class ReaderTransitionView @JvmOverloads constructor(context: Context, attrs: At
|
||||
val isCurrentDownloaded = transition.from.pageLoader is DownloadPageLoader
|
||||
val isNextDownloaded = downloadManager.isChapterDownloaded(
|
||||
nextChapter,
|
||||
manga
|
||||
manga,
|
||||
)
|
||||
binding.upperText.text = buildSpannedString {
|
||||
bold { append(context.getString(R.string.transition_finished)) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user