diff options
Diffstat (limited to 'src/com/android/dialer/list')
-rw-r--r-- | src/com/android/dialer/list/ListsFragment.java | 10 | ||||
-rw-r--r-- | src/com/android/dialer/list/RegularSearchFragment.java | 3 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/com/android/dialer/list/ListsFragment.java b/src/com/android/dialer/list/ListsFragment.java index 934792cdd..08a23732f 100644 --- a/src/com/android/dialer/list/ListsFragment.java +++ b/src/com/android/dialer/list/ListsFragment.java @@ -45,6 +45,7 @@ import com.android.dialer.R; 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.util.DialerUtils; import com.android.dialer.voicemail.VoicemailStatusHelper; import com.android.dialer.voicemail.VoicemailStatusHelperImpl; @@ -403,21 +404,24 @@ public class ListsFragment extends Fragment } String fragmentName; + String tag = null; switch (getCurrentTabIndex()) { case TAB_INDEX_SPEED_DIAL: fragmentName = SpeedDialFragment.class.getSimpleName(); break; case TAB_INDEX_HISTORY: - fragmentName = CallLogFragment.class.getSimpleName() + "#History"; + fragmentName = CallLogFragment.class.getSimpleName(); + tag = "History"; break; case TAB_INDEX_ALL_CONTACTS: fragmentName = AllContactsFragment.class.getSimpleName(); break; case TAB_INDEX_VOICEMAIL: - fragmentName = CallLogFragment.class.getSimpleName() + "#Voicemail"; + fragmentName = CallLogFragment.class.getSimpleName(); + tag = "Voicemail"; default: return; } - AnalyticsUtil.sendScreenView(fragmentName, getActivity(), null); + Logger.logScreenView(fragmentName, getActivity(), tag); } } diff --git a/src/com/android/dialer/list/RegularSearchFragment.java b/src/com/android/dialer/list/RegularSearchFragment.java index ed88d8355..c0807c35c 100644 --- a/src/com/android/dialer/list/RegularSearchFragment.java +++ b/src/com/android/dialer/list/RegularSearchFragment.java @@ -30,6 +30,7 @@ import com.android.dialerbind.ObjectFactory; import com.android.incallui.Call.LogState; import com.android.dialer.R; +import com.android.dialer.logging.Logger; import com.android.dialer.service.CachedNumberLookupService; import com.android.dialer.widget.EmptyContentView; import com.android.dialer.widget.EmptyContentView.OnEmptyViewActionButtonClickedListener; @@ -57,7 +58,7 @@ public class RegularSearchFragment extends SearchFragment @Override public void onStart() { super.onStart(); - AnalyticsUtil.sendScreenView(this); + Logger.logFragmentView(this); } public void configureDirectorySearch() { |