diff options
author | John Reck <jreck@google.com> | 2011-06-23 09:45:54 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-06-27 15:15:43 -0700 |
commit | 961d35d6e9cd58d930d8572b91d7e0c9f928f1e8 (patch) | |
tree | cba9c51fe52a7ce4457545f9503c897a2a7e4b53 /res | |
parent | 32feebd05dc90785194df32b7a14c2e0ceba2b1e (diff) | |
download | packages_apps_Browser-961d35d6e9cd58d930d8572b91d7e0c9f928f1e8.zip packages_apps_Browser-961d35d6e9cd58d930d8572b91d7e0c9f928f1e8.tar.gz packages_apps_Browser-961d35d6e9cd58d930d8572b91d7e0c9f928f1e8.tar.bz2 |
Move most visited to set homepage
Bug: 4770245
Change-Id: If47b2f308ab3cd4b58dbcbf3a28cdb341481a885
Diffstat (limited to 'res')
-rw-r--r-- | res/values/strings.xml | 30 | ||||
-rw-r--r-- | res/xml-sw600dp/lab_preferences.xml | 6 | ||||
-rw-r--r-- | res/xml/general_preferences.xml | 10 | ||||
-rw-r--r-- | res/xml/lab_preferences.xml | 5 |
4 files changed, 24 insertions, 27 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml index 34ca824..55ab267 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -342,12 +342,25 @@ <string name="pref_content_search_engine_summary">Select a search engine</string> <!-- Settings button label that to pick what to set the homepage to [CHAR LIMIT=40] --> <string name="pref_set_homepage_to">Set to\u2026</string> - <!-- Settings button label to set the homepage to the current page [CHAR LIMIT=40] --> - <string name="pref_use_current">Current page</string> - <!-- Settings button label to set the homepage to a blank page [CHAR LIMIT=40] --> - <string name="pref_use_blank">Blank page</string> - <!-- Settings button label to set the homepage to the default page [CHAR LIMIT=40] --> - <string name="pref_use_default">Default page</string> + <string-array name="pref_homepage_choices"> + <!-- Setting choice to set the homepage to the current page [CHAR LIMIT=40] --> + <item>Current page</item> + <!-- Setting choice to set the homepage to a blank page [CHAR LIMIT=40] --> + <item>Blank page</item> + <!-- Setting choice to set the homepage to the default page [CHAR LIMIT=40] --> + <item>Default page</item> + <!-- Setting choice to set the homepage to the "Most Visited" homepage feature [CHAR LIMIT=40] --> + <item>Most-visited homepage</item> + <!-- Setting choice to set the homepage to a user entered URL [CHAR LIMIT=40] --> + <item>Other\u2026</item> + </string-array> + <string-array name="pref_homepage_values" translatable="false"> + <item>current</item> + <item>blank</item> + <item>default</item> + <item>most_visited</item> + <item>other</item> + </string-array> <!-- Settings label --> <string name="pref_content_autofit">Auto-fit pages</string> <!-- Settings summary --> @@ -643,11 +656,6 @@ <!-- Summary for lab quick controls feature [CHAR LIMIT=80] --> <string name="pref_lab_quick_controls_summary"> Swipe thumb from left or right edge to access quick controls and hide Application and URL bars</string> - <!-- Title for lab "Most Visited" homepage feature [CHAR LIMIT=40] --> - <string name="pref_lab_most_visited_homepage">Most-visited homepage</string> - <!-- Summary for lab "Most Visited" homepage feature [CHAR LIMIT=80] --> - <string name="pref_lab_most_visited_homepage_summary"> - Your homepage displays your most-visited webpages.</string> <!-- Title for the "Instant search" lab feature [CHAR LIMIT=40] --> <string name="pref_use_instant_search">Google Instant</string> <!-- Summary for the "Instant search" lab feature [CHAR LIMIT=120] --> diff --git a/res/xml-sw600dp/lab_preferences.xml b/res/xml-sw600dp/lab_preferences.xml index 705f740..1dbec88 100644 --- a/res/xml-sw600dp/lab_preferences.xml +++ b/res/xml-sw600dp/lab_preferences.xml @@ -24,12 +24,6 @@ android:summary="@string/pref_lab_quick_controls_summary" /> <CheckBoxPreference - android:key="use_most_visited_homepage" - android:defaultValue="false" - android:title="@string/pref_lab_most_visited_homepage" - android:summary="@string/pref_lab_most_visited_homepage_summary" /> - - <CheckBoxPreference android:key="use_instant_search" android:defaultValue="false" android:title="@string/pref_use_instant_search" diff --git a/res/xml/general_preferences.xml b/res/xml/general_preferences.xml index 7b26307..13f09c1 100644 --- a/res/xml/general_preferences.xml +++ b/res/xml/general_preferences.xml @@ -16,11 +16,11 @@ <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> - <com.android.browser.BrowserHomepagePreference - android:key="homepage" - android:title="@string/pref_content_homepage" - android:hint="@string/http" - android:inputType="textUri|textMultiLine" /> + <ListPreference + android:key="homepage_picker" + android:entries="@array/pref_homepage_choices" + android:entryValues="@array/pref_homepage_values" + android:title="@string/pref_content_homepage" /> <PreferenceCategory android:title="@string/pref_general_autofill_title"> <CheckBoxPreference android:key="autofill_enabled" diff --git a/res/xml/lab_preferences.xml b/res/xml/lab_preferences.xml index ee00463..3320cee 100644 --- a/res/xml/lab_preferences.xml +++ b/res/xml/lab_preferences.xml @@ -22,11 +22,6 @@ android:title="@string/pref_lab_quick_controls" android:summary="@string/pref_lab_quick_controls_summary" /> <CheckBoxPreference - android:key="use_most_visited_homepage" - android:defaultValue="false" - android:title="@string/pref_lab_most_visited_homepage" - android:summary="@string/pref_lab_most_visited_homepage_summary" /> - <CheckBoxPreference android:key="fullscreen" android:defaultValue="false" android:title="@string/pref_lab_fullscreen" |