mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 18:51:49 +01:00
No need for a new bit for DisplayModeSetting mask
(Thanks Syer)
This commit is contained in:
parent
c560373596
commit
88054b453a
@ -4,10 +4,10 @@ enum class DisplayModeSetting(val flag: Int) {
|
|||||||
COMPACT_GRID(0b00000000),
|
COMPACT_GRID(0b00000000),
|
||||||
COMFORTABLE_GRID(0b00000001),
|
COMFORTABLE_GRID(0b00000001),
|
||||||
LIST(0b00000010),
|
LIST(0b00000010),
|
||||||
COVER_ONLY_GRID(0b10000000);
|
COVER_ONLY_GRID(0b00000011);
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
const val MASK = 0b10000011
|
const val MASK = 0b00000011
|
||||||
|
|
||||||
fun fromFlag(flag: Int?): DisplayModeSetting {
|
fun fromFlag(flag: Int?): DisplayModeSetting {
|
||||||
return values()
|
return values()
|
||||||
|
Loading…
Reference in New Issue
Block a user