From dce4ef822bc30b0df8c81f11ecbef3916db661ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Thu, 19 Sep 2019 10:29:10 +0200 Subject: [PATCH] UI: Fix status bar/NavLib issues, temporarily --- .../main/java/pl/szczodrzynski/edziennik/MainActivity.kt | 6 ++++-- app/src/main/res/values/styles.xml | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt b/app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt index 1316a91a..5d7bbd7c 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt @@ -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() } diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 116c7a40..cdd0abb1 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -95,6 +95,8 @@ ?android:textColorSecondary ?colorSurface @color/dividerColor + + ?android:windowBackground