use new location pref while injecting scripts

This commit is contained in:
Philipp Schaefer 2014-01-02 12:16:15 +01:00
parent b5ffcb5448
commit 4380111851

View File

@ -225,7 +225,7 @@ public class IITC_WebViewClient extends WebViewClient {
} }
// inject the user location script if enabled in settings // inject the user location script if enabled in settings
if (sharedPref.getBoolean("pref_user_loc", false)) { if (Integer.parseInt(sharedPref.getString("pref_user_location_mode", "0")) != 0) {
path = path.replace("plugins/", ""); path = path.replace("plugins/", "");
loadJS(path + "user-location.user.js", !dev_enabled, view); loadJS(path + "user-location.user.js", !dev_enabled, view);
} }