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 c3f394e1c..9ea7cfb37 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
@@ -14,6 +14,7 @@ import eu.kanade.tachiyomi.source.SourceManager
import eu.kanade.tachiyomi.source.online.HttpSource
import eu.kanade.tachiyomi.ui.base.activity.BaseActivity
import eu.kanade.tachiyomi.util.WebViewClientCompat
+import eu.kanade.tachiyomi.util.getResourceColor
import kotlinx.android.synthetic.main.webview_activity.toolbar
import kotlinx.android.synthetic.main.webview_activity.webview
import uy.kohesive.injekt.injectLazy
@@ -29,6 +30,10 @@ class WebViewActivity : BaseActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.webview_activity)
+ // 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(toolbar)
supportActionBar?.setDisplayHomeAsUpEnabled(true)
diff --git a/app/src/main/res/layout/webview_activity.xml b/app/src/main/res/layout/webview_activity.xml
index 2144da73e..972db4d69 100644
--- a/app/src/main/res/layout/webview_activity.xml
+++ b/app/src/main/res/layout/webview_activity.xml
@@ -1,5 +1,5 @@
-
+ app:navigationIcon="@drawable/ic_close_white_24dp"
+ app:layout_scrollFlags="scroll|enterAlways|snap" />
-
+ android:layout_height="match_parent"
+ app:layout_behavior="@string/appbar_scrolling_view_behavior">
-
+
+
+
+
+
diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml
index 135af4281..3f3c35a4b 100644
--- a/app/src/main/res/values/themes.xml
+++ b/app/src/main/res/values/themes.xml
@@ -44,7 +44,7 @@
@@ -67,7 +67,7 @@
- @drawable/line_divider_dark
- true
- - @color/colorDarkPrimaryDark
+ - @android:color/transparent
- @color/colorDarkPrimaryDark
@@ -97,7 +97,7 @@
- @color/colorPrimaryDark
- true
- - @color/colorPrimaryDark
+ - @android:color/transparent
- @color/colorDarkPrimaryDark