Browse Source

Corrected variable names.

master
Anthony Restaino 9 years ago
parent
commit
6df7cdf331
  1. 6
      app/src/main/java/acr/browser/lightning/fragment/PrivacySettingsFragment.java
  2. 6
      app/src/main/java/acr/browser/lightning/preference/PreferenceManager.java

6
app/src/main/java/acr/browser/lightning/fragment/PrivacySettingsFragment.java

@ -33,7 +33,7 @@ public class PrivacySettingsFragment extends LightningPreferenceFragment impleme
private static final String SETTINGS_CLEARWEBSTORAGE = "clear_webstorage"; private static final String SETTINGS_CLEARWEBSTORAGE = "clear_webstorage";
private static final String SETTINGS_WEBSTORAGEEXIT = "clear_webstorage_exit"; private static final String SETTINGS_WEBSTORAGEEXIT = "clear_webstorage_exit";
private static final String SETTINGS_DONOTTRACK = "do_not_track"; private static final String SETTINGS_DONOTTRACK = "do_not_track";
private static final String SETTINGS_INVASIVEHEADERS = "remove_identifying_headers"; private static final String SETTINGS_IDENTIFYINGHEADERS = "remove_identifying_headers";
private Activity mActivity; private Activity mActivity;
private Handler messageHandler; private Handler messageHandler;
@ -63,7 +63,7 @@ public class PrivacySettingsFragment extends LightningPreferenceFragment impleme
CheckBoxPreference cbcookiesexit = (CheckBoxPreference) findPreference(SETTINGS_COOKIEEXIT); CheckBoxPreference cbcookiesexit = (CheckBoxPreference) findPreference(SETTINGS_COOKIEEXIT);
CheckBoxPreference cbwebstorageexit = (CheckBoxPreference) findPreference(SETTINGS_WEBSTORAGEEXIT); CheckBoxPreference cbwebstorageexit = (CheckBoxPreference) findPreference(SETTINGS_WEBSTORAGEEXIT);
CheckBoxPreference cbDoNotTrack = (CheckBoxPreference) findPreference(SETTINGS_DONOTTRACK); CheckBoxPreference cbDoNotTrack = (CheckBoxPreference) findPreference(SETTINGS_DONOTTRACK);
CheckBoxPreference cbIdentifyingHeaders = (CheckBoxPreference) findPreference(SETTINGS_INVASIVEHEADERS); CheckBoxPreference cbIdentifyingHeaders = (CheckBoxPreference) findPreference(SETTINGS_IDENTIFYINGHEADERS);
clearcache.setOnPreferenceClickListener(this); clearcache.setOnPreferenceClickListener(this);
clearhistory.setOnPreferenceClickListener(this); clearhistory.setOnPreferenceClickListener(this);
@ -229,7 +229,7 @@ public class PrivacySettingsFragment extends LightningPreferenceFragment impleme
case SETTINGS_DONOTTRACK: case SETTINGS_DONOTTRACK:
mPreferenceManager.setDoNotTrackEnabled((Boolean) newValue); mPreferenceManager.setDoNotTrackEnabled((Boolean) newValue);
return true; return true;
case SETTINGS_INVASIVEHEADERS: case SETTINGS_IDENTIFYINGHEADERS:
mPreferenceManager.setRemoveIdentifyingHeadersEnabled((Boolean) newValue); mPreferenceManager.setRemoveIdentifyingHeadersEnabled((Boolean) newValue);
return true; return true;
default: default:

6
app/src/main/java/acr/browser/lightning/preference/PreferenceManager.java

@ -52,7 +52,7 @@ public class PreferenceManager {
public static final String CLEAR_WEBSTORAGE_EXIT = "clearWebStorageExit"; public static final String CLEAR_WEBSTORAGE_EXIT = "clearWebStorageExit";
public static final String SHOW_TABS_IN_DRAWER = "showTabsInDrawer"; public static final String SHOW_TABS_IN_DRAWER = "showTabsInDrawer";
public static final String DO_NOT_TRACK = "doNotTrack"; public static final String DO_NOT_TRACK = "doNotTrack";
public static final String INVASIVE_HEADERS = "removeInvasiveHeaders"; public static final String IDENTIFYING_HEADERS = "removeIdentifyingHeaders";
public static final String USE_PROXY = "useProxy"; public static final String USE_PROXY = "useProxy";
public static final String PROXY_CHOICE = "proxyChoice"; public static final String PROXY_CHOICE = "proxyChoice";
@ -252,7 +252,7 @@ public class PreferenceManager {
} }
public boolean getRemoveIdentifyingHeadersEnabled(){ public boolean getRemoveIdentifyingHeadersEnabled(){
return mPrefs.getBoolean(Name.INVASIVE_HEADERS, false); return mPrefs.getBoolean(Name.IDENTIFYING_HEADERS, false);
} }
private void putBoolean(String name, boolean value) { private void putBoolean(String name, boolean value) {
@ -268,7 +268,7 @@ public class PreferenceManager {
} }
public void setRemoveIdentifyingHeadersEnabled(boolean enabled){ public void setRemoveIdentifyingHeadersEnabled(boolean enabled){
putBoolean(Name.INVASIVE_HEADERS, enabled); putBoolean(Name.IDENTIFYING_HEADERS, enabled);
} }
public void setDoNotTrackEnabled(boolean doNotTrack) { public void setDoNotTrackEnabled(boolean doNotTrack) {

Loading…
Cancel
Save