1
0
mirror of https://github.com/mihonapp/mihon.git synced 2025-07-30 03:15:54 +02:00

Fix reading position not being saved when opening multi-versioned EH manga

This commit is contained in:
NerdNumber9
2019-08-04 21:27:59 -04:00
parent 3dac6366ff
commit cd5545284e
7 changed files with 95 additions and 34 deletions
app/src/main/java

@ -0,0 +1,22 @@
package exh.debug
import eu.kanade.tachiyomi.data.preference.PreferencesHelper
import uy.kohesive.injekt.injectLazy
enum class DebugToggles(val default: Boolean) {
ENABLE_EXH_ROOT_REDIRECT(true),
ENABLE_DEBUG_OVERLAY(true),
PULL_TO_ROOT_WHEN_LOADING_EXH_MANGA_DETAILS(true);
val prefKey = "eh_debug_toggle_${name.toLowerCase()}"
var enabled: Boolean
get() = prefs.rxPrefs.getBoolean(prefKey, default).get()!!
set(value) {
prefs.rxPrefs.getBoolean(prefKey).set(value)
}
companion object {
private val prefs: PreferencesHelper by injectLazy()
}
}