aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-09-22 22:35:34 -0700
committerAllan Wang <me@allanwang.ca>2019-09-22 22:35:34 -0700
commit788cec5455721894acd55ef6225d4ab4641e9e24 (patch)
tree4d46e07ba4d9c42dfe638d2b9dcc7e1b159dfab3 /core
parent8a0420e32031912e0f2079f79c7d5b4b38d59c24 (diff)
downloadkau-788cec5455721894acd55ef6225d4ab4641e9e24.tar.gz
kau-788cec5455721894acd55ef6225d4ab4641e9e24.tar.bz2
kau-788cec5455721894acd55ef6225d4ab4641e9e24.zip
Use and with inverse
Diffstat (limited to 'core')
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/utils/ActivityUtils.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/kotlin/ca/allanwang/kau/utils/ActivityUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/ActivityUtils.kt
index 20abe8a..206626e 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/utils/ActivityUtils.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/utils/ActivityUtils.kt
@@ -126,7 +126,7 @@ inline var Activity.navigationBarColor: Int
}
var prevSystemUiVisibility = window.decorView.systemUiVisibility
prevSystemUiVisibility = if (value.isColorDark) {
- prevSystemUiVisibility xor View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
+ prevSystemUiVisibility and View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR.inv()
} else {
prevSystemUiVisibility or View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
}
@@ -147,7 +147,7 @@ inline var Activity.statusBarColor: Int
}
var prevSystemUiVisibility = window.decorView.systemUiVisibility
prevSystemUiVisibility = if (value.isColorDark) {
- prevSystemUiVisibility xor View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
+ prevSystemUiVisibility and View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR.inv()
} else {
prevSystemUiVisibility or View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
}