From 73962a35bab6aba054719a284549ff614d21f347 Mon Sep 17 00:00:00 2001 From: ekager Date: Fri, 22 Nov 2019 10:29:15 -0800 Subject: [PATCH] [fenix] For https://github.com/mozilla-mobile/fenix/issues/5586 - Track all login copy events --- .../main/java/org/mozilla/fenix/logins/SavedLoginSiteInfoFragment.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/logins/SavedLoginSiteInfoFragment.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/logins/SavedLoginSiteInfoFragment.kt index 7c6c0d2e52f8..a66462ff35fc 100644 --- a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/logins/SavedLoginSiteInfoFragment.kt +++ b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/logins/SavedLoginSiteInfoFragment.kt @@ -44,6 +44,7 @@ class SavedLoginSiteInfoFragment : Fragment(R.layout.fragment_saved_login_site_i val clipboard = view.context.components.clipboardHandler clipboard.text = savedLoginItem.url showCopiedSnackbar(getString(R.string.logins_site_copied)) + context?.components?.analytics?.metrics?.track(Event.CopyLogin) } usernameInfoText.text = savedLoginItem.userName @@ -51,6 +52,7 @@ class SavedLoginSiteInfoFragment : Fragment(R.layout.fragment_saved_login_site_i val clipboard = view.context.components.clipboardHandler clipboard.text = savedLoginItem.userName showCopiedSnackbar(getString(R.string.logins_username_copied)) + context?.components?.analytics?.metrics?.track(Event.CopyLogin) } passwordInfoText.inputType = -- 2.11.4.GIT