1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-04 06:20:26 +00:00

Prevent WebView crashes

This commit is contained in:
M66B 2024-06-19 14:56:11 +02:00
parent a93326cfe5
commit 818c9f79a3

View file

@ -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