gecko-dev/mobile
Petru Lingurar 73c9b40a82 Bug 1423045 - Drop an event when User changes default browser to Firefox; r=mcomella
Use SharedPreference to ensure we won't loose previous state if Fennec is killed, set as default, restarted.
The default browser status will only be set once, when the app is resumed, as it cannot change while the app is in foreground.
We will track "E_Changed_Default_To_Fennec" only if Fennec wasn't previously the default browser.
The method to track the event is safe to be called even before the mma init process is finished as LeanPlum postpones the track operation until it has actually been started.

Refactored MmaDelegate to not use a WeakReference for application context anymore as that should exist for the entire time the app is open, and only in that timeframe the MmaDelegate methods that use that context can be called.

MozReview-Commit-ID: JMJJclWj9fq

--HG--
extra : rebase_source : a6b3c6b097dfacb348a4fd0bbf054dd0c14b2d4a
2018-04-18 15:21:12 +03:00
..
android Bug 1423045 - Drop an event when User changes default browser to Firefox; r=mcomella 2018-04-18 15:21:12 +03:00
locales no bug - Bumping Fennec l10n changesets DONTBUILD r=release a=l10n-bump 2018-04-12 03:35:11 -07:00