Bug 697975 - Don't show the first-run animation in tablet mode [r=mfinkle]
authorMatt Brubeck <mbrubeck@mozilla.com>
Sat, 29 Oct 2011 15:05:39 -0700
changeset 80071 0ec53cbc126a9b99d6d5751b6c011e02563891a7
parent 80070 f5a12d693b5b4a0170c2dcd8f97fd66d23d7a9e4
child 80072 eaaab958a659eb52d68ce20dcadf8eb047b6afbc
push id506
push userclegnitto@mozilla.com
push dateWed, 09 Nov 2011 02:03:18 +0000
treeherdermozilla-aurora@63587fc7bb93 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs697975
milestone10.0a1
Bug 697975 - Don't show the first-run animation in tablet mode [r=mfinkle]
mobile/chrome/content/aboutHome.xhtml
--- a/mobile/chrome/content/aboutHome.xhtml
+++ b/mobile/chrome/content/aboutHome.xhtml
@@ -403,17 +403,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);