Skip to content

Commit ddaa2bc

Browse files
committed
ui mode night の条件が漏れてた
1 parent 63af2c8 commit ddaa2bc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

table.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,12 @@ func (c *ResTableConfig) Match(settings *ResTableConfig) bool {
671671
return false
672672
}
673673

674+
uiModeNight := c.UIMode & MASK_UI_MODE_NIGHT
675+
setUIModeNight := settings.UIMode & MASK_UI_MODE_NIGHT
676+
if uiModeNight != 0 && uiModeNight != setUIModeNight {
677+
return false
678+
}
679+
674680
// smallest screen width dp
675681
if c.SmallestScreenWidthDp != 0 &&
676682
c.SmallestScreenWidthDp > settings.SmallestScreenWidthDp {

0 commit comments

Comments
 (0)