Prevent WebView crashes

pull/215/head
M66B 1 year ago
parent a93326cfe5
commit 818c9f79a3

@ -478,9 +478,6 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
} }
static int getDefaultViewportHeight(Context context) { 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;
} }

Loading…
Cancel
Save