Skip to content

Commit

Permalink
Fix overlap between DisplayModeSetting and SortModeSetting masks
Browse files Browse the repository at this point in the history
  • Loading branch information
arkon committed Feb 13, 2022
1 parent d698d03 commit c560373
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(0b00000100);
COVER_ONLY_GRID(0b10000000);

companion object {
const val MASK = 0b00000111
const val MASK = 0b10000011

fun fromFlag(flag: Int?): DisplayModeSetting {
return values()
Expand Down

0 comments on commit c560373

Please sign in to comment.