diff options
| author | Leon Scroggins <scroggo@google.com> | 2010-01-11 13:06:21 -0500 |
|---|---|---|
| committer | Leon Scroggins <scroggo@google.com> | 2010-01-11 13:06:21 -0500 |
| commit | fde9746ac3055848e110c35f19ec5893c621f766 (patch) | |
| tree | fd1e49ba64e33fbdf53d294ae3ab2898c9994e2f /src/com/android/browser/TabControl.java | |
| parent | 02065b07aea6b4392c344a4172c3ab56019225ed (diff) | |
| download | packages_apps_Browser-fde9746ac3055848e110c35f19ec5893c621f766.tar.gz packages_apps_Browser-fde9746ac3055848e110c35f19ec5893c621f766.tar.bz2 packages_apps_Browser-fde9746ac3055848e110c35f19ec5893c621f766.zip | |
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.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/browser/TabControl.java b/src/com/android/browser/TabControl.java index 07cf2ac62..5dc6b6d8f 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. |
