Bug 1423046 - Drop an event when User opens the Firefox app (from Leanplum contextual hints); r=mcomella
We already inform LP about LAUNCH_BROWSER event when the app first starts, now we'll also inform it when the app comes to foreground.
MozReview-Commit-ID: 2XW6hXiWGXd
--- a/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java
+++ b/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java
@@ -1367,16 +1367,18 @@ public class BrowserApp extends GeckoApp
final SharedPreferences sharedPrefs = GeckoSharedPrefs.forProfileName(BrowserApp.this, profile.getName());
FileCleanupController.startIfReady(BrowserApp.this, sharedPrefs, profile.getDir().getAbsolutePath());
}
});
for (final BrowserAppDelegate delegate : delegates) {
delegate.onStart(this);
}
+
+ MmaDelegate.track(MmaDelegate.LAUNCH_BROWSER);
}
@Override
public void onStop() {
super.onStop();
if (mIsAbortingAppLaunch) {
return;
}