diff options
author | Mathew Inwood <mathewi@google.com> | 2011-09-07 14:24:06 +0100 |
---|---|---|
committer | Mathew Inwood <mathewi@google.com> | 2011-09-07 14:24:06 +0100 |
commit | 7590598c87d7e910df6567c377192e93c0e2f771 (patch) | |
tree | 8f27124d5fabab8c6eccd1cdc05931c903ecca8e | |
parent | e64e369aa762f03ed22b408c3b4936a3b3c83dc2 (diff) | |
download | packages_apps_Browser-7590598c87d7e910df6567c377192e93c0e2f771.zip packages_apps_Browser-7590598c87d7e910df6567c377192e93c0e2f771.tar.gz packages_apps_Browser-7590598c87d7e910df6567c377192e93c0e2f771.tar.bz2 |
Change default preload setting to 'Always'.
Also some tidying up to that the default is only specified in a
single place.
Change-Id: I6d66739a8b0d307f8af3c29c62d122a3044c4943
-rw-r--r-- | res/values/strings.xml | 1 | ||||
-rw-r--r-- | res/xml/bandwidth_preferences.xml | 2 | ||||
-rw-r--r-- | src/com/android/browser/BrowserSettings.java | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml index 77e25a3..9bf1dcb 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -656,6 +656,7 @@ <string name="pref_data_preload_value_never" translatable="false">NEVER</string> <string name="pref_data_preload_value_wifi_only" translatable="false">WIFI_ONLY</string> <string name="pref_data_preload_value_always" translatable="false">ALWAYS</string> + <string name="pref_data_preload_default_value" translatable="false">@string/pref_data_preload_value_always</string> <string-array name="pref_data_preload_values" translatable="false"> <item><xliff:g>@string/pref_data_preload_value_never</xliff:g></item> <item><xliff:g>@string/pref_data_preload_value_wifi_only</xliff:g></item> diff --git a/res/xml/bandwidth_preferences.xml b/res/xml/bandwidth_preferences.xml index 8a31304..f294026 100644 --- a/res/xml/bandwidth_preferences.xml +++ b/res/xml/bandwidth_preferences.xml @@ -20,7 +20,7 @@ android:key="preload_when" android:title="@string/pref_data_preload_title" android:summary="@string/pref_data_preload_summary" - android:defaultValue="@string/pref_data_preload_value_wifi_only" + android:defaultValue="@string/pref_data_preload_default_value" android:entries="@array/pref_data_preload_choices" android:entryValues="@array/pref_data_preload_values" android:dialogTitle="@string/pref_data_preload_dialogtitle" /> diff --git a/src/com/android/browser/BrowserSettings.java b/src/com/android/browser/BrowserSettings.java index ce8a9c1..6b8daec 100644 --- a/src/com/android/browser/BrowserSettings.java +++ b/src/com/android/browser/BrowserSettings.java @@ -789,7 +789,7 @@ public class BrowserSettings implements OnSharedPreferenceChangeListener, } private String getDefaultPreloadSetting() { - return getPreloadOnWifiOnlyPreferenceString(mContext); + return mContext.getResources().getString(R.string.pref_data_preload_default_value); } public String getPreloadEnabled() { |