Fixed unchecking read filter

This commit is contained in:
Jay 2020-05-06 05:00:45 -04:00
parent 3c75e58816
commit 6f9a437bb9

View File

@ -280,7 +280,13 @@ class FilterBottomSheet @JvmOverloads constructor(context: Context, attrs: Attri
null
}
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
}
allUnread -> {