UI: Fix status bar/NavLib issues, temporarily

This commit is contained in:
Kuba Szczodrzyński 2019-09-19 10:29:10 +02:00
parent d8afa47d2c
commit dce4ef822b
2 changed files with 8 additions and 2 deletions

View File

@ -229,8 +229,8 @@ class MainActivity : AppCompatActivity() {
drawer.init(this@MainActivity)
SystemBarsUtil(this@MainActivity).run {
paddingByKeyboard = b.navView
appFullscreen = true
//paddingByKeyboard = b.navView
appFullscreen = false
statusBarColor = getColorFromAttr(context, android.R.attr.colorBackground)
statusBarDarker = false
statusBarFallbackLight = COLOR_HALF_TRANSPARENT
@ -239,6 +239,8 @@ class MainActivity : AppCompatActivity() {
b.navView.configSystemBarsUtil(this)
// TODO fix navlib navbar detection, orientation change issues, status bar color setting if not fullscreen
commit()
}

View File

@ -95,6 +95,8 @@
<item name="mal_color_secondary">?android:textColorSecondary</item>
<item name="mal_card_background">?colorSurface</item>
<item name="mal_divider_color">@color/dividerColor</item>
<item name="android:statusBarColor" tools:targetApi="lollipop">?android:windowBackground</item>
</style>
<style name="AppTheme.Dark" parent="NavView.Dark">
<item name="colorPrimary">#64b5f6</item>
@ -119,6 +121,8 @@
<item name="mal_color_secondary">@color/secondaryTextDark</item>
<item name="mal_card_background">?colorSurface</item>
<item name="mal_divider_color">@color/dividerColor</item>
<item name="android:statusBarColor" tools:targetApi="lollipop">?android:windowBackground</item>
</style>