mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-25 15:21:51 +01:00
Fixed unchecking read filter
This commit is contained in:
parent
3c75e58816
commit
6f9a437bb9
@ -280,7 +280,13 @@ class FilterBottomSheet @JvmOverloads constructor(context: Context, attrs: Attri
|
|||||||
null
|
null
|
||||||
}
|
}
|
||||||
unread -> {
|
unread -> {
|
||||||
preferences.filterUnread().set(if (index in 0..1) index + 3 else 2)
|
preferences.filterUnread().set(
|
||||||
|
when (index) {
|
||||||
|
in 0..1 -> index + 3
|
||||||
|
2 -> 2
|
||||||
|
else -> 0
|
||||||
|
}
|
||||||
|
)
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
allUnread -> {
|
allUnread -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user