diff --git a/app/src/main/java/de/ph1b/audiobook/features/imagepicker/CoverFromInternetController.kt b/app/src/main/java/de/ph1b/audiobook/features/imagepicker/CoverFromInternetController.kt index c47d5fbb04..4f32c5ce5f 100644 --- a/app/src/main/java/de/ph1b/audiobook/features/imagepicker/CoverFromInternetController.kt +++ b/app/src/main/java/de/ph1b/audiobook/features/imagepicker/CoverFromInternetController.kt @@ -67,8 +67,8 @@ class CoverFromInternetController(bundle: Bundle) : BaseController(bundle) { displayZoomControls = false javaScriptEnabled = true userAgentString = - "Mozilla/5.0 (Linux; U; Android 4.4; en-us; Nexus 4 Build/JOP24G) " + - "AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30" + "Mozilla/5.0 (Linux; U; Android 4.4; en-us; Nexus 4 Build/JOP24G) " + + "AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30" } webView.webViewClient = object : WebViewClient() { @@ -269,6 +269,10 @@ class CoverFromInternetController(bundle: Bundle) : BaseController(bundle) { return true } + if (noNetwork.isVisible) { + return false + } + if (webView.canGoBack()) { webView.goBack() return true