Bug 824474: Proper cleanup of tabs-tray while hiding. [r=mfinkle]

--HG--
extra : rebase_source : 61bf7bde07dc4cfad77acd656a60c88c4d329d8a
This commit is contained in:
Sriram Ramasubramanian 2012-12-26 12:56:34 -08:00
Родитель da50f2d2d2
Коммит a1c10f99c3
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -410,6 +410,9 @@ public class TabsPanel extends TabHost
mVisible = false;
mPopupMenu.dismiss();
dispatchLayoutChange(0, 0);
mPanel.hide();
mPanel = null;
}
}

Просмотреть файл

@ -222,7 +222,7 @@ public class TabsTray extends ListView
}
private void removeTab(Tab tab) {
if (tab.isPrivate() == mIsPrivate) {
if (tab.isPrivate() == mIsPrivate && mTabs != null) {
mTabs.remove(tab);
notifyDataSetChanged(); // Be sure to call this whenever mTabs changes.
}