summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/ActiveTabsPage.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/browser/ActiveTabsPage.java')
-rw-r--r--src/com/android/browser/ActiveTabsPage.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/browser/ActiveTabsPage.java b/src/com/android/browser/ActiveTabsPage.java
index 52d943f..0feba9a 100644
--- a/src/com/android/browser/ActiveTabsPage.java
+++ b/src/com/android/browser/ActiveTabsPage.java
@@ -83,7 +83,8 @@ public class ActiveTabsPage extends LinearLayout implements OnClickListener,
@Override
public void onItemClick(
AdapterView<?> parent, View view, int position, long id) {
- boolean needToAttach = !mController.switchToTab(position);
+ final Tab tab = mTabControl.getTab(position);
+ boolean needToAttach = !mController.switchToTab(tab);
mController.removeActiveTabsPage(needToAttach);
}