Bug 697975 - Don't show the first-run animation in tablet mode [r=mfinkle, a=lmandel]
authorMatt Brubeck <mbrubeck@mozilla.com>
Sat, 29 Oct 2011 15:05:39 -0700
changeset 78327 fde58d9f353986268bf62ddc4f46868a89b40c43
parent 78326 6db605a34b15345ac6738ce8db2048782e184640
child 78328 90a4c98c1ae33f10545a3cd142cfc6eb77c9e9df
push id488
push usermbrubeck@mozilla.com
push dateWed, 02 Nov 2011 00:34:31 +0000
treeherdermozilla-aurora@fde58d9f3539 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, lmandel
bugs697975
milestone9.0a2
Bug 697975 - Don't show the first-run animation in tablet mode [r=mfinkle, a=lmandel]
mobile/chrome/content/aboutHome.xhtml
--- a/mobile/chrome/content/aboutHome.xhtml
+++ b/mobile/chrome/content/aboutHome.xhtml
@@ -405,17 +405,17 @@
       getChromeWin().Services.obs.removeObserver(updateAddons, "recommended-addons-cache-updated");
     }
    
    function startDiscovery() {
      let win = getChromeWin();
 
      // If a sidebar is completely open, just bail
      let [leftWidth, rightWidth] = win.Browser.computeSidebarVisibility();
-     if (leftWidth == 1 || rightWidth == 1) {
+     if (leftWidth == 1 || rightWidth == 1 || win.Util.isTablet()) {
        endDiscovery();
        return;
      }
 
      let doc = win.document;
      let broadcaster = doc.getElementById("bcast_uidiscovery");
 
      doc.addEventListener("animationend", endDiscovery, false);