Change homepage setting handling
Bug: 3247095
Tweaks the setting of the homepage setting. Replaces the "set to..."
dialog with 2 buttons, and user can now enter a blank url to get a
blank page with title "New Tab".
Change-Id: I95bcfcd241db4b9efbde645100d2fd44c980e061
diff --git a/src/com/android/browser/BrowserSettings.java b/src/com/android/browser/BrowserSettings.java
index 61ef76b..1f091e2 100644
--- a/src/com/android/browser/BrowserSettings.java
+++ b/src/com/android/browser/BrowserSettings.java
@@ -337,7 +337,7 @@
// Set the default value for the Geolocation database path.
geolocationDatabasePath = mContext.getDir("geolocation", 0).getPath();
- if (p.getString(PREF_HOMEPAGE, "") == "") {
+ if (p.getString(PREF_HOMEPAGE, null) == null) {
// No home page preferences is set, set it to default.
setHomePage(mContext, getFactoryResetHomeUrl(mContext));
}