mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fixed crop setting carrying over when switching from cont. vert to webtoon and vice versa
Fixes #1416
This commit is contained in:
parent
900bc07a94
commit
6468263d9f
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ inline fun <reified T> SharedPreferences.getItem(key: String, default: T): T {
|
|||
* Binds a checkbox or switch view with a boolean preference.
|
||||
*/
|
||||
fun CompoundButton.bindToPreference(pref: Preference<Boolean>, block: ((Boolean) -> Unit)? = null) {
|
||||
setOnCheckedChangeListener { _, _ -> }
|
||||
isChecked = pref.get()
|
||||
setOnCheckedChangeListener { _, isChecked ->
|
||||
pref.set(isChecked)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue