From f96bb18b904dada96002cb72d862097ae344db57 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Tue, 10 Nov 2015 10:06:21 -0800 Subject: Log screen events for blocked call fragments * Add blocked number screen types to Logger * Log screen views for SearchFragments in DialtactsActivity rather than in onStart, to avoid double logging for some fragments (e.g. children of RegularSearchFragment) * Log screen view for call log context menu (where the block number action appears Bug: 25288435 Change-Id: I4ebf1410f93afb37d20be2cc57f933e5d635cfb6 --- src/com/android/dialer/DialtactsActivity.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/com/android/dialer/DialtactsActivity.java') diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index cc457bd6c..6de1fdc13 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -1053,6 +1053,12 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O mListsFragment.getView().animate().alpha(0).withLayer(); } mListsFragment.setUserVisibleHint(false); + + if (smartDialSearch) { + Logger.logScreenView(ScreenEvent.SMART_DIAL_SEARCH, this); + } else { + Logger.logScreenView(ScreenEvent.REGULAR_SEARCH, this); + } } /** -- cgit v1.2.3