diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-02 22:54:38 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-02 22:54:38 -0800 |
commit | aec52de1c66b9ec52b126705ea1a63c2db6e12e5 (patch) | |
tree | f3b2d88f92ddbb5366a2817558bc63aa8c36353c /src/com/android/browser/BrowserPreferencesPage.java | |
parent | 1a16d15d91a3896065ceeb4972231eb5656a6f6c (diff) | |
download | packages_apps_Browser-aec52de1c66b9ec52b126705ea1a63c2db6e12e5.zip packages_apps_Browser-aec52de1c66b9ec52b126705ea1a63c2db6e12e5.tar.gz packages_apps_Browser-aec52de1c66b9ec52b126705ea1a63c2db6e12e5.tar.bz2 |
auto import from //depot/cupcake/@137055
Diffstat (limited to 'src/com/android/browser/BrowserPreferencesPage.java')
-rw-r--r-- | src/com/android/browser/BrowserPreferencesPage.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/browser/BrowserPreferencesPage.java b/src/com/android/browser/BrowserPreferencesPage.java index b23f750..5d6795b 100644 --- a/src/com/android/browser/BrowserPreferencesPage.java +++ b/src/com/android/browser/BrowserPreferencesPage.java @@ -83,8 +83,7 @@ public class BrowserPreferencesPage extends PreferenceActivity if (needUpdate) { value = value.trim().replace(" ", "%20"); } - Uri path = Uri.parse(value); - if (path.getScheme() == null) { + if (value.length() != 0 && Uri.parse(value).getScheme() == null) { value = "http://" + value; needUpdate = true; } |