diff options
Diffstat (limited to 'core/java/android/webkit/URLUtil.java')
| -rw-r--r-- | core/java/android/webkit/URLUtil.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/webkit/URLUtil.java b/core/java/android/webkit/URLUtil.java index c1319e5f880b..542dd2182222 100644 --- a/core/java/android/webkit/URLUtil.java +++ b/core/java/android/webkit/URLUtil.java @@ -74,9 +74,9 @@ public final class URLUtil { } // Check host - if (webAddress.mHost.indexOf('.') == -1) { + if (webAddress.getHost().indexOf('.') == -1) { // no dot: user probably entered a bare domain. try .com - webAddress.mHost = "www." + webAddress.mHost + ".com"; + webAddress.setHost("www." + webAddress.getHost() + ".com"); } return webAddress.toString(); } |
