summaryrefslogtreecommitdiff
path: root/src/com/android/browser/Controller.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/Controller.java
parent88956b9456a6c8396dc966e6bfb61e45287569a5 (diff)
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/Controller.java')
-rw-r--r--src/com/android/browser/Controller.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java
index 92cb743b..58edd230 100644
--- a/src/com/android/browser/Controller.java
+++ b/src/com/android/browser/Controller.java
@@ -2098,15 +2098,11 @@ public class Controller
}
}
- protected void closeEmptyChildTab() {
+ protected void closeEmptyTab() {
Tab current = mTabControl.getCurrentTab();
if (current != null
&& current.getWebView().copyBackForwardList().getSize() == 0) {
- Tab parent = current.getParent();
- if (parent != null) {
- switchToTab(parent);
- closeTab(current);
- }
+ closeCurrentTab();
}
}