状态栏透明 #304
This commit is contained in:
@@ -126,7 +126,11 @@ abstract class BaseActivity<VB : ViewBinding>(
|
|||||||
if (fullScreen && !isInMultiWindow) {
|
if (fullScreen && !isInMultiWindow) {
|
||||||
fullScreen()
|
fullScreen()
|
||||||
}
|
}
|
||||||
setStatusBarColorAuto(Color.TRANSPARENT, false, fullScreen)
|
setStatusBarColorAuto(
|
||||||
|
themeColor(com.google.android.material.R.attr.colorSurface),
|
||||||
|
true,
|
||||||
|
fullScreen
|
||||||
|
)
|
||||||
val isDarkTheme = when (resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) {
|
val isDarkTheme = when (resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) {
|
||||||
Configuration.UI_MODE_NIGHT_YES -> true
|
Configuration.UI_MODE_NIGHT_YES -> true
|
||||||
Configuration.UI_MODE_NIGHT_NO,
|
Configuration.UI_MODE_NIGHT_NO,
|
||||||
|
|||||||
Reference in New Issue
Block a user