diff options
author | John Reck <jreck@google.com> | 2011-04-25 09:01:54 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-04-26 13:03:32 -0700 |
commit | 35e9dd6283a2d65687104eb0b3a459c02dcb150b (patch) | |
tree | d7091a875a205b2650106d8d01331f30eeb7e68a /src/com/android/browser/preferences/PrivacySecurityPreferencesFragment.java | |
parent | 6cd8f6b6ad2733f71d81de1188d830d010c1b4b6 (diff) | |
download | packages_apps_Browser-35e9dd6283a2d65687104eb0b3a459c02dcb150b.zip packages_apps_Browser-35e9dd6283a2d65687104eb0b3a459c02dcb150b.tar.gz packages_apps_Browser-35e9dd6283a2d65687104eb0b3a459c02dcb150b.tar.bz2 |
Browser settings refactor
Change-Id: I6fc1b21f7ea692fbe37a17bf900e9b7408a9c077
Diffstat (limited to 'src/com/android/browser/preferences/PrivacySecurityPreferencesFragment.java')
-rw-r--r-- | src/com/android/browser/preferences/PrivacySecurityPreferencesFragment.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/com/android/browser/preferences/PrivacySecurityPreferencesFragment.java b/src/com/android/browser/preferences/PrivacySecurityPreferencesFragment.java index 2266608..35e6e43 100644 --- a/src/com/android/browser/preferences/PrivacySecurityPreferencesFragment.java +++ b/src/com/android/browser/preferences/PrivacySecurityPreferencesFragment.java @@ -16,7 +16,7 @@ package com.android.browser.preferences; -import com.android.browser.BrowserSettings; +import com.android.browser.PreferenceKeys; import com.android.browser.R; import android.app.Activity; @@ -28,18 +28,14 @@ import android.preference.PreferenceFragment; public class PrivacySecurityPreferencesFragment extends PreferenceFragment implements Preference.OnPreferenceChangeListener { - private BrowserSettings mSettings; - @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - mSettings = BrowserSettings.getInstance(); - // Load the preferences from an XML resource addPreferencesFromResource(R.xml.privacy_security_preferences); - Preference e = findPreference(BrowserSettings.PREF_CLEAR_HISTORY); + Preference e = findPreference(PreferenceKeys.PREF_PRIVACY_CLEAR_HISTORY); e.setOnPreferenceChangeListener(this); } @@ -50,7 +46,7 @@ public class PrivacySecurityPreferencesFragment extends PreferenceFragment @Override public boolean onPreferenceChange(Preference pref, Object objValue) { - if (pref.getKey().equals(BrowserSettings.PREF_CLEAR_HISTORY) + if (pref.getKey().equals(PreferenceKeys.PREF_PRIVACY_CLEAR_HISTORY) && ((Boolean) objValue).booleanValue() == true) { // Need to tell the browser to remove the parent/child relationship // between tabs |