1 parent 63af2c8 commit ddaa2bcCopy full SHA for ddaa2bc
1 file changed
table.go
@@ -671,6 +671,12 @@ func (c *ResTableConfig) Match(settings *ResTableConfig) bool {
671
return false
672
}
673
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
+
680
// smallest screen width dp
681
if c.SmallestScreenWidthDp != 0 &&
682
c.SmallestScreenWidthDp > settings.SmallestScreenWidthDp {
0 commit comments