Increase viewport hight for recent Pixel devices

pull/217/head
M66B 9 months ago
parent a4025fdf66
commit 435679d096

@ -475,6 +475,9 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
}
static int getDefaultViewportHeight(Context context) {
if (Helper.isGoogle() && Build.VERSION.SDK_INT > Build.VERSION_CODES.UPSIDE_DOWN_CAKE /* Android 14 */)
return DEFAULT_VIEWPORT_HEIGHT * 2;
else
return DEFAULT_VIEWPORT_HEIGHT;
}

Loading…
Cancel
Save