Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
xscreach committed Jul 3, 2023
1 parent 1452329 commit b809b2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ public void onSharedPreferenceChanged(final SharedPreferences sharedPreferences,
final boolean enablePopup = mSharedPrefs.getBoolean("pref_popup", false);
mIitcWebView.setSupportPopup(enablePopup);
} else if (key.equals("pref_webview_zoom")) {
mIitcWebView.setWebViewZoom(Integer.parseInt(mSharedPrefs.getString("pref_webview_zoom", "-1")));
mIitcWebView.setWebViewZoom(mSharedPrefs.getInt("pref_webview_zoom", -1));
}

mReloadNeeded = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private void iitc_init(final Context c) {
mSettings.setAppCachePath(getContext().getCacheDir().getAbsolutePath());

setSupportPopup(mSharedPrefs.getBoolean("pref_popup", false));
setWebViewZoom(Integer.parseInt(mSharedPrefs.getString("pref_webview_zoom", "-1")));
setWebViewZoom(mSharedPrefs.getInt("pref_webview_zoom", -1));

// enable mixed content (http on https...needed for some map tiles) mode
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
Expand Down

0 comments on commit b809b2d

Please sign in to comment.