diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 8b77b9172f..8dc22accba 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -39,11 +39,6 @@
android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />
-
() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
+ if (!WebViewUtil.supportsWebView(this)) {
+ toast(R.string.information_webview_required, Toast.LENGTH_LONG)
+ finish()
+ }
+
try {
binding = WebviewActivityBinding.inflate(layoutInflater)
setContentView(binding.root)
} catch (e: Exception) {
// Potentially throws errors like "Error inflating class android.webkit.WebView"
- ForceCloseActivity.closeApp(this)
+ toast(R.string.information_webview_required, Toast.LENGTH_LONG)
+ finish()
}
title = intent.extras?.getString(TITLE_KEY)