Fix Tab switching when starting a Download
When a Download URL opens in a new Tab,
the browser attempts to start the Download
and close the Tab. The methods used to do this
were buggy, leaving the visible tab in a broken
state.
Change-Id: I3eb0e9ca0992bfec48de2f58f5aa2895018cdd88
diff --git a/src/com/android/browser/BaseUi.java b/src/com/android/browser/BaseUi.java
index 1083576..5934fe1 100644
--- a/src/com/android/browser/BaseUi.java
+++ b/src/com/android/browser/BaseUi.java
@@ -413,10 +413,7 @@
@Override
public void removeTab(Tab tab) {
- if (mActiveTab == tab) {
- removeTabFromContentView(tab);
- mActiveTab = null;
- }
+ removeTabFromContentView(tab);
}
@Override