Increase viewport hight for recent Pixel devices

This commit is contained in:
M66B
2024-12-31 14:32:19 +01:00
parent a4025fdf66
commit 435679d096

View File

@@ -475,7 +475,10 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
}
static int getDefaultViewportHeight(Context context) {
return DEFAULT_VIEWPORT_HEIGHT;
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;
}
@NonNull