Fixes the bug around misbehavior with empty homepage setting
Bug: 2911567
Setting the homepage to "" resulted in odd behavior. This changes
it so that entering "" fails with an invalid URL error (now a toast
instead of a dialog). The "Use Current" button was replaced with a
"Set to..." button that allows the user to specify whether they want
to set the homepage to the current page, a blank page, or the default page.
Change-Id: I2d0cac158f89ace6ecab6165a3768419ba3252d4
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 3a3cab8..e5adc93 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -319,8 +319,14 @@
<string name="pref_content_search_engine">Set search engine</string>
<!-- Settings summary -->
<string name="pref_content_search_engine_summary">Select a search engine</string>
- <!-- Settings button label -->
- <string name="pref_use_current">Use current page</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>
<!-- Settings label -->
<string name="pref_content_autofit">Auto-fit pages</string>
<!-- Settings summary -->