From 1b0c13a417388eafdd70f1ec8d1529d781552c05 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 15 Feb 2020 17:44:35 -0500 Subject: [PATCH] Show URL in Webview subtitle --- .../java/eu/kanade/tachiyomi/ui/webview/WebViewActivity.kt | 3 +++ 1 file changed, 3 insertions(+) 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 02964edcbe..07c6965a71 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 @@ -57,6 +57,8 @@ class WebViewActivity : BaseActivity() { val url = intent.extras!!.getString(URL_KEY) ?: return val headers = source.headers.toMultimap().mapValues { it.value.getOrNull(0) ?: "" } + supportActionBar?.subtitle = url + webview.settings.javaScriptEnabled = true webview.settings.userAgentString = source.headers["User-Agent"] @@ -81,6 +83,7 @@ class WebViewActivity : BaseActivity() { super.onPageFinished(view, url) invalidateOptionsMenu() title = view?.title + supportActionBar?.subtitle = url swipe_refresh.isEnabled = true swipe_refresh?.isRefreshing = false }