diff options
author | Yorke Lee <yorkelee@google.com> | 2015-11-09 19:37:46 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-11-09 19:37:46 +0000 |
commit | 4aabaacd849235864c16f8e6bc72e0d0412a02e6 (patch) | |
tree | 502f22ee607ba92cf6a7da33edb2411ff36af26a /src/com/android/dialer/list/ListsFragment.java | |
parent | f5470bcf377666bf9a97114c27541e1c931f3fe6 (diff) | |
parent | 58e68a9513495cbe76188d6066c4ffa467313175 (diff) |
Merge "More work to hook up screen event logging" into ub-contactsdialer-a-dev
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 4735926e8..9b1e41e5d 100644 --- a/src/com/android/dialer/list/ListsFragment.java +++ b/src/com/android/dialer/list/ListsFragment.java @@ -38,6 +38,7 @@ import com.android.dialer.R; import com.android.dialer.calllog.CallLogFragment; import com.android.dialer.calllog.CallLogQueryHandler; import com.android.dialer.logging.Logger; +import com.android.dialer.logging.ScreenEvent; import com.android.dialer.util.DialerUtils; import com.android.dialer.voicemail.VisualVoicemailEnabledChecker; import com.android.dialer.voicemail.VoicemailStatusHelper; @@ -393,25 +394,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()); } } |