diff --git a/app/src/main/java/eu/kanade/domain/manga/interactor/ResetViewerFlags.kt b/app/src/main/java/eu/kanade/domain/manga/interactor/ResetViewerFlags.kt
index cc07264e3..13b766af1 100644
--- a/app/src/main/java/eu/kanade/domain/manga/interactor/ResetViewerFlags.kt
+++ b/app/src/main/java/eu/kanade/domain/manga/interactor/ResetViewerFlags.kt
@@ -3,7 +3,7 @@ package eu.kanade.domain.manga.interactor
import eu.kanade.domain.manga.repository.MangaRepository
class ResetViewerFlags(
- private val mangaRepository: MangaRepository
+ private val mangaRepository: MangaRepository,
) {
suspend fun await(): Boolean {
return mangaRepository.resetViewerFlags()
diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAdvancedController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAdvancedController.kt
index 3e35c5c41..f8f9e4424 100644
--- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAdvancedController.kt
+++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAdvancedController.kt
@@ -25,7 +25,6 @@ import eu.kanade.tachiyomi.ui.base.controller.pushController
import eu.kanade.tachiyomi.ui.setting.database.ClearDatabaseController
import eu.kanade.tachiyomi.util.CrashLogUtil
import eu.kanade.tachiyomi.util.lang.launchIO
-import eu.kanade.tachiyomi.util.lang.withIOContext
import eu.kanade.tachiyomi.util.lang.withUIContext
import eu.kanade.tachiyomi.util.preference.bindTo
import eu.kanade.tachiyomi.util.preference.defaultValue
@@ -46,7 +45,6 @@ import eu.kanade.tachiyomi.util.system.logcat
import eu.kanade.tachiyomi.util.system.powerManager
import eu.kanade.tachiyomi.util.system.setDefaultSettings
import eu.kanade.tachiyomi.util.system.toast
-import kotlinx.coroutines.runBlocking
import logcat.LogPriority
import rikka.sui.Sui
import uy.kohesive.injekt.Injekt
@@ -56,7 +54,7 @@ import java.io.File
import eu.kanade.tachiyomi.data.preference.PreferenceKeys as Keys
class SettingsAdvancedController(
- private val mangaRepository: MangaRepository = Injekt.get()
+ private val mangaRepository: MangaRepository = Injekt.get(),
) : SettingsController() {
private val network: NetworkHelper by injectLazy()
@@ -325,14 +323,14 @@ class SettingsAdvancedController(
private fun resetViewerFlags() {
val activity = activity ?: return
launchIO {
- val isSuccesful = mangaRepository.resetViewerFlags()
+ val success = mangaRepository.resetViewerFlags()
withUIContext {
- val resouurceString = if (isSuccesful) {
- R.string.pref_reset_viewer_flags_succesful
+ val message = if (success) {
+ R.string.pref_reset_viewer_flags_success
} else {
- R.string.pref_reset_viewer_flags_unsuccesful
+ R.string.pref_reset_viewer_flags_error
}
- activity.toast(resouurceString)
+ activity.toast(message)
}
}
}
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index cb3e79ed5..0c1bbed88 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -486,10 +486,10 @@
Refresh library manga covers
Refresh tracking
Updates status, score and last chapter read from the tracking services
- Reset Viewer Flags
+ Reset viewer flags
Resets reading mode and orientation of all series
- Viewer flags reset was succesful
- Couldn\'t reset viewer flags
+ Viewer flags reset
+ Couldn\'t reset viewer flags
Dump crash logs
Saves error logs to a file for sharing with the developers
Crash logs saved