diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/ReaderActivity.kt b/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/ReaderActivity.kt index 040f25118..8fded84e9 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/ReaderActivity.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/ReaderActivity.kt @@ -489,7 +489,7 @@ class ReaderActivity : else -> chapterTitle } if ( - viewModel.isChapterToastEnabled.value && + settings.isReaderChapterToastEnabled && chapterTitle != previous?.getChapterTitle(resources) && chapterTitle.isNotEmpty() ) { diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/ReaderViewModel.kt b/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/ReaderViewModel.kt index a9229f62a..e951521d2 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/ReaderViewModel.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/ReaderViewModel.kt @@ -142,12 +142,6 @@ class ReaderViewModel @Inject constructor( valueProducer = { isReaderBarTransparent }, ) - val isChapterToastEnabled = settings.observeAsStateFlow( - scope = viewModelScope + Dispatchers.Default, - key = AppSettings.KEY_READER_CHAPTER_TOAST, - valueProducer = { isReaderChapterToastEnabled }, - ) - val isKeepScreenOnEnabled = settings.observeAsStateFlow( scope = viewModelScope + Dispatchers.Default, key = AppSettings.KEY_READER_SCREEN_ON, diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 448406bce..c58709c79 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -803,8 +803,8 @@ Enable all manga sources All available manga sources will be enabled permanently All sources are enabled - Show chapter toast - Show a toast message with the chapter name when it changes + Show chapter change popup + Show a pop-up message with a chapter title when it is changed Transparent reader information bar The backup will be restored in the background Restoring backup