Bug 850600 - Part 1: Call hide() on TabPanel after tab tray is hidden. r=mfinkle

This commit is contained in:
Josh Dover 2014-04-18 14:08:00 -07:00
Родитель 70d10c4512
Коммит 864a28c792
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -436,6 +436,13 @@ public class TabsPanel extends LinearLayout
mHeader.setLayerType(View.LAYER_TYPE_NONE, null);
mTabsContainer.setLayerType(View.LAYER_TYPE_NONE, null);
// If the tray is now hidden, call hide() on current panel and unset it as the current panel
// to avoid hide() being called again when the tray is opened next.
if (!mVisible && mPanel != null) {
mPanel.hide();
mPanel = null;
}
}
public void setTabsLayoutChangeListener(TabsLayoutChangeListener listener) {