summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/TabControl.java
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2010-01-11 13:06:21 -0500
committerLeon Scroggins <scroggo@google.com>2010-01-11 13:06:21 -0500
commitfde9746ac3055848e110c35f19ec5893c621f766 (patch)
treefd1e49ba64e33fbdf53d294ae3ab2898c9994e2f /src/com/android/browser/TabControl.java
parent02065b07aea6b4392c344a4172c3ab56019225ed (diff)
downloadpackages_apps_browser-fde9746ac3055848e110c35f19ec5893c621f766.zip
packages_apps_browser-fde9746ac3055848e110c35f19ec5893c621f766.tar.gz
packages_apps_browser-fde9746ac3055848e110c35f19ec5893c621f766.tar.bz2
Clear parent/child tab relationships when clearing history.
Fixes http://b/issue?id=2330279
Diffstat (limited to 'src/com/android/browser/TabControl.java')
-rw-r--r--src/com/android/browser/TabControl.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/browser/TabControl.java b/src/com/android/browser/TabControl.java
index 07cf2ac..5dc6b6d 100644
--- a/src/com/android/browser/TabControl.java
+++ b/src/com/android/browser/TabControl.java
@@ -174,6 +174,15 @@ class TabControl {
}
/**
+ * Remove the parent child relationships from all tabs.
+ */
+ void removeParentChildRelationShips() {
+ for (Tab tab : mTabs) {
+ tab.removeFromTree();
+ }
+ }
+
+ /**
* Remove the tab from the list. If the tab is the current tab shown, the
* last created tab will be shown.
* @param t The tab to be removed.