Bug 1093619 - Don't display onboarding screen for Webapp profiles. r=margaret, a=lmandel
authorChenxia Liu <liuche@mozilla.com>
Wed, 12 Nov 2014 09:38:03 -0800
changeset 226031 5cbc59a67d8c
parent 226028 cd70fa61662a
child 226032 f7dd649eb2f6
push id4115
push usercliu@mozilla.com
push date2014-11-12 17:38 +0000
treeherdermozilla-beta@5cbc59a67d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret, lmandel
bugs1093619
milestone34.0
Bug 1093619 - Don't display onboarding screen for Webapp profiles. r=margaret, a=lmandel
mobile/android/base/GeckoProfile.java
--- a/mobile/android/base/GeckoProfile.java
+++ b/mobile/android/base/GeckoProfile.java
@@ -652,19 +652,21 @@ public final class GeckoProfile {
             } finally {
                 writer.close();
             }
         } catch (Exception e) {
             // Best-effort.
             Log.w(LOGTAG, "Couldn't write times.json.", e);
         }
 
-        // Initialize pref flag for displaying the start pane for a new profile.
-        final SharedPreferences prefs = GeckoSharedPrefs.forProfile(mApplicationContext);
-        prefs.edit().putBoolean(BrowserApp.PREF_STARTPANE_ENABLED, true).apply();
+        // Initialize pref flag for displaying the start pane for a new non-webapp profile.
+        if (!mIsWebAppProfile) {
+            final SharedPreferences prefs = GeckoSharedPrefs.forProfile(mApplicationContext);
+            prefs.edit().putBoolean(BrowserApp.PREF_STARTPANE_ENABLED, true).apply();
+        }
 
         return profileDir;
     }
 
     /**
      * This method is called once, immediately before creation of the profile
      * directory completes.
      *