Skip to content

Commit

Permalink
Fixing accidentally renamed native Android methods
Browse files Browse the repository at this point in the history
  • Loading branch information
NickalasB committed Feb 2, 2021
1 parent 0094921 commit 9e82faf
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,24 +430,24 @@ private void updateUserAgent(String userAgent) {
}

private void zoomEnabled(boolean shouldEnable) {
webView.getSettings().zoomEnabled(shouldEnable);
webView.getSettings().setSupportZoom(shouldEnable);
}

private void builtInZoomControlsEnabled(boolean shouldEnable) {
webView.getSettings().builtInZoomControlsEnabled(shouldEnable);
webView.getSettings().setBuiltInZoomControls(shouldEnable);
}

private void displayZoomControls(boolean shouldEnable) {
// oOn-screen zoom controls are deprecated in Android (see ZoomButtonsController) so it's recommended to set this to false.
webView.getSettings().displayZoomControls(shouldEnable);
// On-screen zoom controls are deprecated in Android (see ZoomButtonsController) so it's recommended to set this to false.
webView.getSettings().setDisplayZoomControls(shouldEnable);
}

private void useWideViewPort(boolean shouldEnable) {
webView.getSettings().useWideViewPort(shouldEnable);
webView.getSettings().setUseWideViewPort(shouldEnable);
}

private void loadWithOverviewMode(boolean shouldEnable) {
webView.getSettings().loadWithOverviewMode(shouldEnable);
webView.getSettings().setLoadWithOverviewMode(shouldEnable);
}

@Override
Expand Down

0 comments on commit 9e82faf

Please sign in to comment.