diff options
author | Yorke Lee <yorkelee@google.com> | 2015-11-04 20:44:25 -0800 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-11-06 13:40:11 -0800 |
commit | 6e0fd6b77759baf43cb37d407041be051b4856b5 (patch) | |
tree | a31182b6553518f1f4cff68b8b89657c8226d4a8 /src/com/android/dialer/DialtactsActivity.java | |
parent | 2ffa54ae8fbecedc5a57c265565d835c6468b640 (diff) |
Route all existing screen view events through the Logger
* The logger is responsible for sending it to its logging
implementation, and also to AnalyicsUtil.
* Standardize logic for creating a tagged version of a screen
name
Bug: 23164804
Change-Id: I9b817fba5359f78340f2d9fdba54af9ea73cdb37
Diffstat (limited to 'src/com/android/dialer/DialtactsActivity.java')
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index dabe590ad..4fa4bc2d7 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -81,6 +81,7 @@ import com.android.dialer.list.RegularSearchFragment; import com.android.dialer.list.SearchFragment; import com.android.dialer.list.SmartDialSearchFragment; import com.android.dialer.list.SpeedDialFragment; +import com.android.dialer.logging.Logger; import com.android.dialer.settings.DialerSettingsActivity; import com.android.dialer.util.DialerUtils; import com.android.dialer.util.IntentUtil; @@ -526,7 +527,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O // This is only called when the activity goes from resumed -> paused -> resumed, so it // will not cause an extra view to be sent out on rotation if (mIsDialpadShown) { - AnalyticsUtil.sendScreenView(mDialpadFragment, this); + Logger.logFragmentView(mDialpadFragment); } mIsRestarting = false; } @@ -741,7 +742,9 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O } mDialpadFragment.setAnimate(animate); - AnalyticsUtil.sendScreenView(mDialpadFragment); + // logScreenView is used here explicitly to provide the activity as the DialpadFragment + // might not have been attached yet. + Logger.logScreenView(DialpadFragment.class.getSimpleName(), this, null); ft.commit(); if (animate) { |