diff options
author | Bjorn Bringert <bringert@android.com> | 2010-10-12 16:24:55 +0100 |
---|---|---|
committer | Bjorn Bringert <bringert@android.com> | 2010-10-13 16:21:01 +0100 |
commit | eb8be973c7982fe3ece0aeaeca379c3b3cdced0c (patch) | |
tree | d8d735099aaa53d453581766ccf38a11375ed188 /core/java/android/webkit/URLUtil.java | |
parent | 7db7c5d60c0826c5781756ce75548b4a5bc0a3c5 (diff) | |
download | frameworks_base-eb8be973c7982fe3ece0aeaeca379c3b3cdced0c.zip frameworks_base-eb8be973c7982fe3ece0aeaeca379c3b3cdced0c.tar.gz frameworks_base-eb8be973c7982fe3ece0aeaeca379c3b3cdced0c.tar.bz2 |
Make fields in WebAddress private, add getters/setters
Change-Id: Iceaf3d648289344e53c37273f7324a79676fbef7
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 c1319e5..542dd21 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(); } |