Loading app/src/main/java/org/mozilla/fenix/HomeActivity.kt +6 −2 Original line number Diff line number Diff line Loading @@ -248,7 +248,10 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity { // Launch this on a background thread so as not to affect startup performance lifecycleScope.launch(IO) { if (settings().wasDefaultBrowserOnLastPause != settings().isDefaultBrowser()) { if ( settings().isDefaultBrowser() && settings().wasDefaultBrowserOnLastPause != settings().isDefaultBrowser() ) { metrics.track(Event.ChangedToDefaultBrowser) } } Loading @@ -259,7 +262,8 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity { window.addFlags(WindowManager.LayoutParams.FLAG_SECURE) } if (settings().wasDefaultBrowserOnLastPause != settings().isDefaultBrowser()) { if (settings().wasDefaultBrowserOnLastPause != settings().isDefaultBrowser() ) { settings().wasDefaultBrowserOnLastPause = settings().isDefaultBrowser() } Loading app/src/main/java/org/mozilla/fenix/settings/DefaultBrowserPreference.kt +0 −2 Original line number Diff line number Diff line Loading @@ -10,8 +10,6 @@ import android.widget.Switch import androidx.preference.Preference import androidx.preference.PreferenceViewHolder import org.mozilla.fenix.R import org.mozilla.fenix.components.metrics.Event import org.mozilla.fenix.ext.metrics import org.mozilla.fenix.utils.BrowsersCache class DefaultBrowserPreference @JvmOverloads constructor( Loading docs/mma.md +10 −0 Original line number Diff line number Diff line Loading @@ -246,6 +246,16 @@ Here is the list of current Events sent, which can be found here in the code bas <td>The user has installed an addon from the addon management page.</td> <td><a href="https://github.com/mozilla-mobile/fenix/pull/12136#issuecomment-651922547">#12136</a></td> </tr> <tr> <td>`E_Search_Widget_Added`</td> <td>The user has installed the search widget to their homescreen.</td> <td><a href="https://github.com/mozilla-mobile/fenix/pull/13003">#13003</a></td> </tr> <tr> <td>`E_Changed_Default_To_Fenix`</td> <td>The user has changed their default browser to Fenix while Fenix was in the background and then resumed the app</td> <td><a href="https://github.com/mozilla-mobile/fenix/pull/13003">#13003</a></td> </tr> </table> Deep links Loading Loading
app/src/main/java/org/mozilla/fenix/HomeActivity.kt +6 −2 Original line number Diff line number Diff line Loading @@ -248,7 +248,10 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity { // Launch this on a background thread so as not to affect startup performance lifecycleScope.launch(IO) { if (settings().wasDefaultBrowserOnLastPause != settings().isDefaultBrowser()) { if ( settings().isDefaultBrowser() && settings().wasDefaultBrowserOnLastPause != settings().isDefaultBrowser() ) { metrics.track(Event.ChangedToDefaultBrowser) } } Loading @@ -259,7 +262,8 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity { window.addFlags(WindowManager.LayoutParams.FLAG_SECURE) } if (settings().wasDefaultBrowserOnLastPause != settings().isDefaultBrowser()) { if (settings().wasDefaultBrowserOnLastPause != settings().isDefaultBrowser() ) { settings().wasDefaultBrowserOnLastPause = settings().isDefaultBrowser() } Loading
app/src/main/java/org/mozilla/fenix/settings/DefaultBrowserPreference.kt +0 −2 Original line number Diff line number Diff line Loading @@ -10,8 +10,6 @@ import android.widget.Switch import androidx.preference.Preference import androidx.preference.PreferenceViewHolder import org.mozilla.fenix.R import org.mozilla.fenix.components.metrics.Event import org.mozilla.fenix.ext.metrics import org.mozilla.fenix.utils.BrowsersCache class DefaultBrowserPreference @JvmOverloads constructor( Loading
docs/mma.md +10 −0 Original line number Diff line number Diff line Loading @@ -246,6 +246,16 @@ Here is the list of current Events sent, which can be found here in the code bas <td>The user has installed an addon from the addon management page.</td> <td><a href="https://github.com/mozilla-mobile/fenix/pull/12136#issuecomment-651922547">#12136</a></td> </tr> <tr> <td>`E_Search_Widget_Added`</td> <td>The user has installed the search widget to their homescreen.</td> <td><a href="https://github.com/mozilla-mobile/fenix/pull/13003">#13003</a></td> </tr> <tr> <td>`E_Changed_Default_To_Fenix`</td> <td>The user has changed their default browser to Fenix while Fenix was in the background and then resumed the app</td> <td><a href="https://github.com/mozilla-mobile/fenix/pull/13003">#13003</a></td> </tr> </table> Deep links Loading