Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ public D3SView(final Context context) {
private void initUI() {
getSettings().setJavaScriptEnabled(true);
getSettings().setBuiltInZoomControls(true);
// Render bank pages at their native scale so they are not auto zoomed in.

Copilot AI Apr 22, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment says “native scale”, but setLoadWithOverviewMode(true) typically scales the page to fit the WebView (after honoring the page viewport) rather than preserving a true 1:1 “native” scale. Consider rewording to something like “Respect the page viewport and fit the content to the WebView to avoid starting zoomed in” to avoid misleading future readers.

Suggested change
// Render bank pages at their native scale so they are not auto zoomed in.
// Respect the page viewport and fit the content to the WebView to avoid starting zoomed in.

Copilot uses AI. Check for mistakes.
getSettings().setUseWideViewPort(true);
getSettings().setLoadWithOverviewMode(true);
addJavascriptInterface(new D3SJSInterface(), JavaScriptNS);

setWebViewClient(new WebViewClient() {
Expand Down
Loading