From 88054b453a65a8046651a9102010c40e30fc357f Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 12 Feb 2022 22:26:51 -0500 Subject: [PATCH] No need for a new bit for DisplayModeSetting mask (Thanks Syer) --- .../kanade/tachiyomi/ui/library/setting/DisplayModeSetting.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/setting/DisplayModeSetting.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/setting/DisplayModeSetting.kt index 55a50822d..c84e70cfa 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/setting/DisplayModeSetting.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/setting/DisplayModeSetting.kt @@ -4,10 +4,10 @@ enum class DisplayModeSetting(val flag: Int) { COMPACT_GRID(0b00000000), COMFORTABLE_GRID(0b00000001), LIST(0b00000010), - COVER_ONLY_GRID(0b10000000); + COVER_ONLY_GRID(0b00000011); companion object { - const val MASK = 0b10000011 + const val MASK = 0b00000011 fun fromFlag(flag: Int?): DisplayModeSetting { return values()