From 818c9f79a331930ae338ded8fba5cac56cb0e9a6 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 19 Jun 2024 14:56:11 +0200 Subject: [PATCH] Prevent WebView crashes --- app/src/main/java/eu/faircode/email/WebViewEx.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/WebViewEx.java b/app/src/main/java/eu/faircode/email/WebViewEx.java index 7aef4e7f3c..f8a11ee9ba 100644 --- a/app/src/main/java/eu/faircode/email/WebViewEx.java +++ b/app/src/main/java/eu/faircode/email/WebViewEx.java @@ -478,10 +478,7 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC } static int getDefaultViewportHeight(Context context) { - if (Helper.isGoogle() || Build.VERSION.SDK_INT > Build.VERSION_CODES.TIRAMISU) - return DEFAULT_VIEWPORT_HEIGHT * 2; - else - return DEFAULT_VIEWPORT_HEIGHT; + return DEFAULT_VIEWPORT_HEIGHT; } @NonNull