summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/Tab.java
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-08-29 16:43:02 -0700
committerJohn Reck <jreck@google.com>2011-08-29 16:48:09 -0700
commit8bcafc149bc49b84c8dfbaacf88c178d8bc9eda6 (patch)
tree22fbd2191f8d23233fa7aef98cfef50767aa74bd /src/com/android/browser/Tab.java
parent88956b9456a6c8396dc966e6bfb61e45287569a5 (diff)
downloadpackages_apps_browser-8bcafc149bc49b84c8dfbaacf88c178d8bc9eda6.zip
packages_apps_browser-8bcafc149bc49b84c8dfbaacf88c178d8bc9eda6.tar.gz
packages_apps_browser-8bcafc149bc49b84c8dfbaacf88c178d8bc9eda6.tar.bz2
Fix blank page activity selection bug
Bug: 5191031 Sets an app id on the tab so that if the intent comes back to us, it is opened in the current tab. Close empty tabs correctly if the intent goes elsewhere Fix Tab.syncCurrentState to deal with WebView.getUrl() == null correctly Change-Id: I31e1e1f6688fb5c5c31ba07dde4e6b3bad34fb13
Diffstat (limited to 'src/com/android/browser/Tab.java')
-rw-r--r--src/com/android/browser/Tab.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/browser/Tab.java b/src/com/android/browser/Tab.java
index c519c91..ecd4a80 100644
--- a/src/com/android/browser/Tab.java
+++ b/src/com/android/browser/Tab.java
@@ -877,7 +877,7 @@ class Tab implements PictureListener {
// Sync state (in case of stop/timeout)
mCurrentState.mUrl = view.getUrl();
if (mCurrentState.mUrl == null) {
- mCurrentState.mUrl = url != null ? url : "";
+ mCurrentState.mUrl = "";
}
mCurrentState.mOriginalUrl = view.getOriginalUrl();
mCurrentState.mTitle = view.getTitle();