|
|
@ -51,8 +51,12 @@ object ATH { |
|
|
|
isTransparentStatusBar: Boolean, |
|
|
|
isTransparentStatusBar: Boolean, |
|
|
|
fullScreen: Boolean |
|
|
|
fullScreen: Boolean |
|
|
|
) { |
|
|
|
) { |
|
|
|
if (fullScreen && isTransparentStatusBar) { |
|
|
|
if (fullScreen) { |
|
|
|
activity.window.statusBarColor = Color.TRANSPARENT |
|
|
|
if (isTransparentStatusBar) { |
|
|
|
|
|
|
|
activity.window.statusBarColor = Color.TRANSPARENT |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
activity.window.statusBarColor = activity.getCompatColor(R.color.status_bar_bag) |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
activity.window.statusBarColor = color |
|
|
|
activity.window.statusBarColor = color |
|
|
|
} |
|
|
|
} |
|
|
|