Skip to content

Commit

Permalink
No need for a new bit for DisplayModeSetting mask
Browse files Browse the repository at this point in the history
(Thanks Syer)
  • Loading branch information
arkon committed Feb 13, 2022
1 parent c560373 commit 88054b4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 88054b4

Please sign in to comment.