diff options
author | Yorke Lee <yorkelee@google.com> | 2015-11-06 10:35:30 -0800 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-11-09 11:18:38 -0800 |
commit | 58e68a9513495cbe76188d6066c4ffa467313175 (patch) | |
tree | 4bf102afd0b4d16d7307236d1f88ea727537c1dc /src/com/android/dialer/list/ListsFragment.java | |
parent | 6e0fd6b77759baf43cb37d407041be051b4856b5 (diff) |
More work to hook up screen event logging
* Change logScreenView to log by an integer rather than string
representing a screen name
* Add some missing log events (SmartDialSearchFragment, etc)
* Add mapping of integer to screen name strings for AnalyticsUtil
Bug: 23164804
Change-Id: If34a01b71a3fb598caa237e4b679cfeb30c4dd01
Diffstat (limited to 'src/com/android/dialer/list/ListsFragment.java')
-rw-r--r-- | src/com/android/dialer/list/ListsFragment.java | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/com/android/dialer/list/ListsFragment.java b/src/com/android/dialer/list/ListsFragment.java index 08a23732f..4c80cc817 100644 --- a/src/com/android/dialer/list/ListsFragment.java +++ b/src/com/android/dialer/list/ListsFragment.java @@ -46,6 +46,7 @@ import com.android.dialer.calllog.CallLogFragment; import com.android.dialer.calllog.CallLogQueryHandler; import com.android.dialer.calllog.ContactInfoHelper; import com.android.dialer.logging.Logger; +import com.android.dialer.logging.ScreenEvent; import com.android.dialer.util.DialerUtils; import com.android.dialer.voicemail.VoicemailStatusHelper; import com.android.dialer.voicemail.VoicemailStatusHelperImpl; @@ -403,25 +404,22 @@ public class ListsFragment extends Fragment return; } - String fragmentName; - String tag = null; + int screenType; switch (getCurrentTabIndex()) { case TAB_INDEX_SPEED_DIAL: - fragmentName = SpeedDialFragment.class.getSimpleName(); + screenType = ScreenEvent.SPEED_DIAL; break; case TAB_INDEX_HISTORY: - fragmentName = CallLogFragment.class.getSimpleName(); - tag = "History"; + screenType = ScreenEvent.CALL_LOG; break; case TAB_INDEX_ALL_CONTACTS: - fragmentName = AllContactsFragment.class.getSimpleName(); + screenType = ScreenEvent.ALL_CONTACTS; break; case TAB_INDEX_VOICEMAIL: - fragmentName = CallLogFragment.class.getSimpleName(); - tag = "Voicemail"; + screenType = ScreenEvent.VOICEMAIL_LOG; default: return; } - Logger.logScreenView(fragmentName, getActivity(), tag); + Logger.logScreenView(screenType, getActivity()); } } |