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/AccessibilityPreferencesFragment.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/AccessibilityPreferencesFragment.java')
-rw-r--r-- | src/com/android/browser/preferences/AccessibilityPreferencesFragment.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/com/android/browser/preferences/AccessibilityPreferencesFragment.java b/src/com/android/browser/preferences/AccessibilityPreferencesFragment.java index 1f88e48..99bd687 100644 --- a/src/com/android/browser/preferences/AccessibilityPreferencesFragment.java +++ b/src/com/android/browser/preferences/AccessibilityPreferencesFragment.java @@ -16,14 +16,13 @@ package com.android.browser.preferences; -import com.android.browser.BrowserSettings; +import com.android.browser.PreferenceKeys; import com.android.browser.R; import android.content.res.Resources; import android.os.Bundle; import android.preference.Preference; import android.preference.PreferenceFragment; -import android.util.Log; import android.view.View; public class AccessibilityPreferencesFragment extends PreferenceFragment @@ -34,11 +33,11 @@ public class AccessibilityPreferencesFragment extends PreferenceFragment super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.accessibility_preferences); - Preference e = findPreference(BrowserSettings.PREF_TEXT_SIZE); + Preference e = findPreference(PreferenceKeys.PREF_TEXT_SIZE); e.setOnPreferenceChangeListener(this); e.setSummary(getVisualTextSizeName( getPreferenceScreen().getSharedPreferences() - .getString(BrowserSettings.PREF_TEXT_SIZE, null)) ); + .getString(PreferenceKeys.PREF_TEXT_SIZE, null)) ); } @Override @@ -55,7 +54,7 @@ public class AccessibilityPreferencesFragment extends PreferenceFragment return false; } - if (pref.getKey().equals(BrowserSettings.PREF_TEXT_SIZE)) { + if (pref.getKey().equals(PreferenceKeys.PREF_TEXT_SIZE)) { pref.setSummary(getVisualTextSizeName((String) objValue)); return true; } |