summaryrefslogtreecommitdiffstats
path: root/core/java/android/webkit/URLUtil.java
diff options
context:
space:
mode:
authorBjorn Bringert <bringert@android.com>2010-10-12 16:24:55 +0100
committerBjorn Bringert <bringert@android.com>2010-10-13 16:21:01 +0100
commiteb8be973c7982fe3ece0aeaeca379c3b3cdced0c (patch)
treed8d735099aaa53d453581766ccf38a11375ed188 /core/java/android/webkit/URLUtil.java
parent7db7c5d60c0826c5781756ce75548b4a5bc0a3c5 (diff)
downloadframeworks_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.java4
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();
}