From 7c7d40ea44fd9cb6800e4eb9fdcb54d25760de36 Mon Sep 17 00:00:00 2001 From: arkon Date: Fri, 10 Apr 2020 18:07:09 -0400 Subject: [PATCH] Fix status/navigation bar colors (fixes #2858) --- .../tachiyomi/ui/webview/WebViewActivity.kt | 4 ---- .../tachiyomi/widget/SimpleNavigationView.kt | 4 ---- .../main/res/layout/catalogue_controller.xml | 3 +-- app/src/main/res/layout/main_activity.xml | 1 - app/src/main/res/layout/webview_activity.xml | 1 - app/src/main/res/values/themes.xml | 17 +++++------------ 6 files changed, 6 insertions(+), 24 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/webview/WebViewActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/webview/WebViewActivity.kt index e650db77c..0464558f9 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/webview/WebViewActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/webview/WebViewActivity.kt @@ -37,10 +37,6 @@ class WebViewActivity : BaseActivity() { binding = WebviewActivityBinding.inflate(layoutInflater) setContentView(binding.root) - // Manually override status bar color since it's normally transparent with the app themes - // This is needed to hide the app bar when it scrolls up - window.statusBarColor = getResourceColor(R.attr.colorPrimaryDark) - title = intent.extras?.getString(TITLE_KEY) setSupportActionBar(binding.toolbar) supportActionBar?.setDisplayHomeAsUpEnabled(true) diff --git a/app/src/main/java/eu/kanade/tachiyomi/widget/SimpleNavigationView.kt b/app/src/main/java/eu/kanade/tachiyomi/widget/SimpleNavigationView.kt index e55b89611..e89354e17 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/widget/SimpleNavigationView.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/widget/SimpleNavigationView.kt @@ -54,10 +54,6 @@ open class SimpleNavigationView @JvmOverloads constructor( R.styleable.NavigationView_elevation, 0).toFloat()) } - @Suppress("DEPRECATION") - ViewCompat.setFitsSystemWindows(this, - a.getBoolean(R.styleable.NavigationView_android_fitsSystemWindows, false)) - maxWidth = a.getDimensionPixelSize(R.styleable.NavigationView_android_maxWidth, 0) a.recycle() diff --git a/app/src/main/res/layout/catalogue_controller.xml b/app/src/main/res/layout/catalogue_controller.xml index 84bd97400..e5c8a15e1 100644 --- a/app/src/main/res/layout/catalogue_controller.xml +++ b/app/src/main/res/layout/catalogue_controller.xml @@ -7,8 +7,7 @@ + android:layout_height="match_parent"> locale + ?attr/colorPrimary + ?attr/colorPrimary true false @style/ThemeOverlay.MaterialComponents @@ -65,7 +67,6 @@ @@ -164,6 +156,7 @@ @color/colorAmoledPrimary + @android:color/transparent