Bug 800238 - Don't show feedback solicitation before initialization. r=margaret
authorBrian Nicholson <bnicholson@mozilla.com>
Thu, 11 Oct 2012 20:16:35 -0700
changeset 110247 23a938b18570ee723dc0c283a6b44da425f36c7a
parent 110246 64b6e5be0426deee73f9f8fc14234eb99ce91510
child 110248 76071e66c36bfda0b6940a2f448f378295f4fae8
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersmargaret
bugs800238
milestone19.0a1
Bug 800238 - Don't show feedback solicitation before initialization. r=margaret
mobile/android/base/BrowserApp.java
--- a/mobile/android/base/BrowserApp.java
+++ b/mobile/android/base/BrowserApp.java
@@ -943,17 +943,17 @@ abstract public class BrowserApp extends
     /*
      * If the app has been launched a certain number of times, and we haven't asked for feedback before,
      * open a new tab with about:feedback when launching the app from the icon shortcut.
      */ 
     @Override
     protected void onNewIntent(Intent intent) {
         super.onNewIntent(intent);
 
-        if (!Intent.ACTION_MAIN.equals(intent.getAction()))
+        if (!Intent.ACTION_MAIN.equals(intent.getAction()) || !mInitialized)
             return;
 
         (new GeckoAsyncTask<Void, Void, Boolean>(mAppContext, GeckoAppShell.getHandler()) {
             @Override
             public synchronized Boolean doInBackground(Void... params) {
                 // Check to see how many times the app has been launched.
                 SharedPreferences settings = getPreferences(Activity.MODE_PRIVATE);
                 String keyName = getPackageName() + ".feedback_launch_count";