зеркало из https://github.com/mozilla/gecko-dev.git
Bug 850600 - Part 1: Call hide() on TabPanel after tab tray is hidden. r=mfinkle
This commit is contained in:
Родитель
70d10c4512
Коммит
864a28c792
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче