Dark status bar, light system icons during onboarding

This commit is contained in:
Hafizzle 2023-10-03 11:47:24 -04:00
parent 4ce05d4c0d
commit 773038804c

View file

@ -107,9 +107,10 @@ class SetupActivity : BaseActivity(), ViewPager.OnPageChangeListener {
if (this.isUsingNightModeResources()) {
window.statusBarColor = ContextCompat.getColor(this, R.color.black_20_alpha)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
window.insetsController?.setSystemBarsAppearance(
WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS,
0,
WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS
)
} else {
@ -118,6 +119,7 @@ class SetupActivity : BaseActivity(), ViewPager.OnPageChangeListener {
}
}
}
override fun onDestroy() {