Bug 803325 - Check tab count instead of Gecko:Ready for showing tabs tray. r=sriram
authorBrian Nicholson <bnicholson@mozilla.com>
Mon, 29 Oct 2012 16:34:28 -0700
changeset 111847 a235cb7f4de1fda9d5606d92355948e8e0f80a11
parent 111846 f7e3e8c6e632ff175a17689ddaf8a3a0bd028954
child 111848 376802b2671da2896b3c6847f24fcc81d52d8fdd
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewerssriram
bugs803325
milestone19.0a1
Bug 803325 - Check tab count instead of Gecko:Ready for showing tabs tray. r=sriram
mobile/android/base/BrowserApp.java
--- a/mobile/android/base/BrowserApp.java
+++ b/mobile/android/base/BrowserApp.java
@@ -457,17 +457,17 @@ abstract public class BrowserApp extends
         showTabs(TabsPanel.Panel.LOCAL_TABS);
     }
 
     public void showRemoteTabs() {
         showTabs(TabsPanel.Panel.REMOTE_TABS);
     }
 
     private void showTabs(TabsPanel.Panel panel) {
-        if (!checkLaunchState(LaunchState.GeckoRunning))
+        if (Tabs.getInstance().getCount() == 0)
             return;
 
         mTabsPanel.show(panel);
     }
 
     public void hideTabs() {
         mTabsPanel.hide();
     }