diff options
author | Victoria Lease <violets@google.com> | 2012-03-23 14:19:56 -0700 |
---|---|---|
committer | Victoria Lease <violets@google.com> | 2012-03-30 11:36:09 -0700 |
commit | 96497838babbaeb143b0fbc7d0de9c695e56e9f7 (patch) | |
tree | 62cab1448ea8b043fb82afab5e9086d0bafe5900 /res | |
parent | 018c4c2e28e147fe505375601bd6432a19474ab8 (diff) | |
download | packages_apps_browser-96497838babbaeb143b0fbc7d0de9c695e56e9f7.zip packages_apps_browser-96497838babbaeb143b0fbc7d0de9c695e56e9f7.tar.gz packages_apps_browser-96497838babbaeb143b0fbc7d0de9c695e56e9f7.tar.bz2 |
pref for html5 prefetch bandwidth management
Bug: 5218987
Change-Id: Ifeb9a1b3d71ac83b8ad94a8f31ed324ebd5d0fe7
Diffstat (limited to 'res')
-rw-r--r-- | res/values/strings.xml | 22 | ||||
-rw-r--r-- | res/xml/bandwidth_preferences.xml | 8 |
2 files changed, 30 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml index 2de5e58..6afe4d5 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -664,6 +664,28 @@ <string name="pref_data_preload_summary">Allow browser to preload high confidence search results in the background</string> <!-- Title of dialog for search preloading [CHAR LIMIT=40] --> <string name="pref_data_preload_dialogtitle">Search result preloading</string> + <!-- Title for link prefetching [CHAR LIMIT=40] --> + <string name="pref_link_prefetch_title">Web page preloading</string> + <!-- Link prefetching options [CHAR LIMIT=20] --> + <string-array name="pref_link_prefetch_choices"> + <item>Never</item> + <item>Only on Wi-Fi</item> + <item>Always</item> + </string-array> + <!-- Do not translate --> + <string name="pref_link_prefetch_value_never" translatable="false">NEVER</string> + <string name="pref_link_prefetch_value_wifi_only" translatable="false">WIFI_ONLY</string> + <string name="pref_link_prefetch_value_always" translatable="false">ALWAYS</string> + <string name="pref_link_prefetch_default_value" translatable="false">@string/pref_link_prefetch_value_wifi_only</string> + <string-array name="pref_link_prefetch_values" translatable="false"> + <item><xliff:g>@string/pref_link_prefetch_value_never</xliff:g></item> + <item><xliff:g>@string/pref_link_prefetch_value_wifi_only</xliff:g></item> + <item><xliff:g>@string/pref_link_prefetch_value_always</xliff:g></item> + </string-array> + <!-- Summary for link prefetching [CHAR LIMIT=80] --> + <string name="pref_link_prefetch_summary">Allow browser to preload linked web pages in the background</string> + <!-- Title of dialog for link prefetching [CHAR LIMIT=40] --> + <string name="pref_link_prefetch_dialogtitle">Web page preloading</string> <!-- Title for a dialog displayed when the browser has a data connectivity problem --> <string name="browserFrameNetworkErrorLabel">Connection problem</string> diff --git a/res/xml/bandwidth_preferences.xml b/res/xml/bandwidth_preferences.xml index bb1688e..9946b48 100644 --- a/res/xml/bandwidth_preferences.xml +++ b/res/xml/bandwidth_preferences.xml @@ -24,6 +24,14 @@ android:entryValues="@array/pref_data_preload_values" android:dialogTitle="@string/pref_data_preload_dialogtitle" /> + <ListPreference + android:key="link_prefetch_when" + android:title="@string/pref_link_prefetch_title" + android:summary="@string/pref_link_prefetch_summary" + android:entries="@array/pref_link_prefetch_choices" + android:entryValues="@array/pref_link_prefetch_values" + android:dialogTitle="@string/pref_link_prefetch_dialogtitle" /> + <CheckBoxPreference android:key="load_images" android:defaultValue="true" |