summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/browser/AddBookmarkPage.java2
-rw-r--r--src/com/android/browser/BrowserActivity.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/browser/AddBookmarkPage.java b/src/com/android/browser/AddBookmarkPage.java
index 707126f..92717d3 100644
--- a/src/com/android/browser/AddBookmarkPage.java
+++ b/src/com/android/browser/AddBookmarkPage.java
@@ -576,7 +576,7 @@ public class AddBookmarkPage extends Activity
} catch (ParseException e) {
throw new URISyntaxException("", "");
}
- if (address.mHost.length() == 0) {
+ if (address.getHost().length() == 0) {
throw new URISyntaxException("", "");
}
url = address.toString();
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index 6f0ee75..a507daa 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -2555,7 +2555,7 @@ public class BrowserActivity extends Activity
String host;
try {
WebAddress uri = new WebAddress(url);
- host = uri.mHost;
+ host = uri.getHost();
} catch (android.net.ParseException ex) {
host = "browser";
}
@@ -3209,7 +3209,7 @@ public class BrowserActivity extends Activity
WebAddress webAddress;
try {
webAddress = new WebAddress(url);
- webAddress.mPath = encodePath(webAddress.mPath);
+ webAddress.setPath(encodePath(webAddress.getPath()));
} catch (Exception e) {
// This only happens for very bad urls, we want to chatch the
// exception here
@@ -3233,7 +3233,7 @@ public class BrowserActivity extends Activity
Downloads.Impl.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);
values.put(Downloads.Impl.COLUMN_MIME_TYPE, mimetype);
values.put(Downloads.Impl.COLUMN_FILE_NAME_HINT, filename);
- values.put(Downloads.Impl.COLUMN_DESCRIPTION, webAddress.mHost);
+ values.put(Downloads.Impl.COLUMN_DESCRIPTION, webAddress.getHost());
if (contentLength > 0) {
values.put(Downloads.Impl.COLUMN_TOTAL_BYTES, contentLength);
}