From 6df7cdf3314ed1f0e95e8385218ca9718cf383c5 Mon Sep 17 00:00:00 2001 From: Anthony Restaino Date: Fri, 30 Oct 2015 23:38:14 -0400 Subject: [PATCH] Corrected variable names. --- .../browser/lightning/fragment/PrivacySettingsFragment.java | 6 +++--- .../acr/browser/lightning/preference/PreferenceManager.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/acr/browser/lightning/fragment/PrivacySettingsFragment.java b/app/src/main/java/acr/browser/lightning/fragment/PrivacySettingsFragment.java index f678ba6..4b76aa9 100644 --- a/app/src/main/java/acr/browser/lightning/fragment/PrivacySettingsFragment.java +++ b/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_WEBSTORAGEEXIT = "clear_webstorage_exit"; 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 Handler messageHandler; @@ -63,7 +63,7 @@ public class PrivacySettingsFragment extends LightningPreferenceFragment impleme CheckBoxPreference cbcookiesexit = (CheckBoxPreference) findPreference(SETTINGS_COOKIEEXIT); CheckBoxPreference cbwebstorageexit = (CheckBoxPreference) findPreference(SETTINGS_WEBSTORAGEEXIT); CheckBoxPreference cbDoNotTrack = (CheckBoxPreference) findPreference(SETTINGS_DONOTTRACK); - CheckBoxPreference cbIdentifyingHeaders = (CheckBoxPreference) findPreference(SETTINGS_INVASIVEHEADERS); + CheckBoxPreference cbIdentifyingHeaders = (CheckBoxPreference) findPreference(SETTINGS_IDENTIFYINGHEADERS); clearcache.setOnPreferenceClickListener(this); clearhistory.setOnPreferenceClickListener(this); @@ -229,7 +229,7 @@ public class PrivacySettingsFragment extends LightningPreferenceFragment impleme case SETTINGS_DONOTTRACK: mPreferenceManager.setDoNotTrackEnabled((Boolean) newValue); return true; - case SETTINGS_INVASIVEHEADERS: + case SETTINGS_IDENTIFYINGHEADERS: mPreferenceManager.setRemoveIdentifyingHeadersEnabled((Boolean) newValue); return true; default: diff --git a/app/src/main/java/acr/browser/lightning/preference/PreferenceManager.java b/app/src/main/java/acr/browser/lightning/preference/PreferenceManager.java index f1656c2..d948e42 100644 --- a/app/src/main/java/acr/browser/lightning/preference/PreferenceManager.java +++ b/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 SHOW_TABS_IN_DRAWER = "showTabsInDrawer"; 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 PROXY_CHOICE = "proxyChoice"; @@ -252,7 +252,7 @@ public class PreferenceManager { } public boolean getRemoveIdentifyingHeadersEnabled(){ - return mPrefs.getBoolean(Name.INVASIVE_HEADERS, false); + return mPrefs.getBoolean(Name.IDENTIFYING_HEADERS, false); } private void putBoolean(String name, boolean value) { @@ -268,7 +268,7 @@ public class PreferenceManager { } public void setRemoveIdentifyingHeadersEnabled(boolean enabled){ - putBoolean(Name.INVASIVE_HEADERS, enabled); + putBoolean(Name.IDENTIFYING_HEADERS, enabled); } public void setDoNotTrackEnabled(boolean doNotTrack) {