diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/filter/FilterBottomSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/filter/FilterBottomSheet.kt index 88b9cbf83c..cf679b1c61 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/filter/FilterBottomSheet.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/filter/FilterBottomSheet.kt @@ -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 -> {