diff options
author | Yorke Lee <yorkelee@google.com> | 2015-11-09 19:39:52 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2015-11-09 19:39:52 +0000 |
commit | 9d7bc2472a4ffa7d4efa6f2c2b7f5b1c5263c051 (patch) | |
tree | ea4cdb15962665c772c2254a485cbdb321a8a61a /src/com/android/dialer/DialtactsActivity.java | |
parent | 2664b78740c71964b8c8fee78eb0a99b5ca09b71 (diff) | |
parent | 4aabaacd849235864c16f8e6bc72e0d0412a02e6 (diff) |
Merge "More work to hook up screen event logging" into ub-contactsdialer-a-dev
am: 4aabaacd84
* commit '4aabaacd849235864c16f8e6bc72e0d0412a02e6':
More work to hook up screen event logging
Diffstat (limited to 'src/com/android/dialer/DialtactsActivity.java')
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index b4dd6c9c8..891b62e49 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -82,6 +82,7 @@ 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.logging.ScreenEvent; import com.android.dialer.settings.DialerSettingsActivity; import com.android.dialer.util.DialerUtils; import com.android.dialer.util.IntentUtil; @@ -527,7 +528,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) { - Logger.logFragmentView(mDialpadFragment); + Logger.logScreenView(ScreenEvent.DIALPAD, this); } mIsRestarting = false; } @@ -682,12 +683,15 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O ImportExportDialogFragment.show(getFragmentManager(), true, DialtactsActivity.class, ImportExportDialogFragment.EXPORT_MODE_DEFAULT); } + Logger.logScreenView(ScreenEvent.IMPORT_EXPORT_CONTACTS, this); return true; case R.id.menu_clear_frequents: ClearFrequentsDialog.show(getFragmentManager()); + Logger.logScreenView(ScreenEvent.CLEAR_FREQUENTS, this); return true; case R.id.menu_call_settings: handleMenuSettings(); + Logger.logScreenView(ScreenEvent.SETTINGS, this); return true; } return false; @@ -742,9 +746,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O } mDialpadFragment.setAnimate(animate); - // 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); + Logger.logScreenView(ScreenEvent.DIALPAD, this); ft.commit(); if (animate) { |