Skip to content

Commit

Permalink
reloading webview preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
xscreach committed Jul 3, 2023
1 parent d0bf66b commit 3654168
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,7 @@ public File getCacheDir() {
}

public void reloadIITC() {
mIitcWebView.iitc_init(this);
loadUrl(mIntelUrl);
mReloadNeeded = false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class IITC_WebView extends WebView {


// init web view
private void iitc_init(final Context c) {
public void iitc_init(final Context c) {
if (isInEditMode()) return;
mIitc = (IITC_Mobile) c;
mSharedPrefs = PreferenceManager.getDefaultSharedPreferences(mIitc);
Expand Down
2 changes: 1 addition & 1 deletion mobile/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
<string name="pref_update_plugins_interval_2_weeks">2 weeks</string>
<string name="pref_webview_zoom">WebView Zoom</string>
<string name="pref_webview_zoom_defaultValue">System default</string>
<string name="pref_webview_zoom_sum">Zoom for the internal WebView (requires restart)</string>
<string name="pref_webview_zoom_sum">Zoom for the internal WebView</string>
<string name="menu_reload">Reload IITC</string>
<string name="menu_toggle_fullscreen">Fullscreen</string>
<string name="menu_layer_chooser">Layer Chooser</string>
Expand Down

0 comments on commit 3654168

Please sign in to comment.