Bug 811738: Close tabs-tray on closing last tab. [r=mfinkle].

This commit is contained in:
Sriram Ramasubramanian 2012-11-28 16:29:08 -08:00
parent 872af67b0c
commit b40f3d5c43
2 changed files with 5 additions and 2 deletions

View File

@ -71,7 +71,7 @@ public class RemoteTabs extends LinearLayout
public void hide() {
}
void autoHidePanel() {
private void autoHidePanel() {
mTabsPanel.autoHidePanel();
}

View File

@ -103,7 +103,7 @@ public class TabsTray extends LinearLayout
mTabsAdapter.clear();
}
void autoHidePanel() {
private void autoHidePanel() {
mTabsPanel.autoHidePanel();
}
@ -290,6 +290,9 @@ public class TabsTray extends LinearLayout
}
});
if (mTabsAdapter.getCount() == 1)
autoHidePanel();
animator.start();
}