зеркало из https://github.com/mozilla/gecko-dev.git
Bug 824474: Proper cleanup of tabs-tray while hiding. [r=mfinkle]
--HG-- extra : rebase_source : 61bf7bde07dc4cfad77acd656a60c88c4d329d8a
This commit is contained in:
Родитель
da50f2d2d2
Коммит
a1c10f99c3
|
@ -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.
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче