diff options
author | Sai Cheemalapati <saicheems@google.com> | 2014-08-04 11:48:50 -0700 |
---|---|---|
committer | Sai Cheemalapati <saicheems@google.com> | 2014-08-06 10:56:05 -0700 |
commit | 2d7faf6c13212f8a035609181de4f594a76af960 (patch) | |
tree | 82112e80f88bb79355580ae298d291132b84ee45 /src | |
parent | 49447a9859b6f45dd4eb4cb9302931c725257038 (diff) |
Fragments in Dialtacts report to Analytics.
Fragments in DialtactsActivity now report to Analytics when viewed.
Change-Id: I86d6cabc372bd466a4907d79b1613e5ae1445227
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 2 | ||||
-rw-r--r-- | src/com/android/dialer/list/ListsFragment.java | 7 | ||||
-rw-r--r-- | src/com/android/dialer/list/SearchFragment.java | 1 |
3 files changed, 9 insertions, 1 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index 7d4e2d0aa..1e5b6642a 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -616,6 +616,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O } mIsDialpadShown = true; mDialpadFragment.setAnimate(animate); + mDialpadFragment.sendScreenView(); final FragmentTransaction ft = getFragmentManager().beginTransaction(); ft.show(mDialpadFragment); @@ -878,7 +879,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O } else { transaction.show(fragment); } - // DialtactsActivity will provide the options menu fragment.setHasOptionsMenu(false); fragment.setShowEmptyListForNullQuery(true); diff --git a/src/com/android/dialer/list/ListsFragment.java b/src/com/android/dialer/list/ListsFragment.java index 8ca66cf3f..04e8d8f2a 100644 --- a/src/com/android/dialer/list/ListsFragment.java +++ b/src/com/android/dialer/list/ListsFragment.java @@ -329,6 +329,13 @@ public class ListsFragment extends AnalyticsFragment implements CallLogQueryHand @Override public void onPageSelected(int position) { + if (position == TAB_INDEX_SPEED_DIAL) { + mSpeedDialFragment.sendScreenView(); + } else if (position == TAB_INDEX_RECENTS) { + mRecentsFragment.sendScreenView(); + } else if (position == TAB_INDEX_ALL_CONTACTS) { + mAllContactsFragment.sendScreenView(); + } final int count = mOnPageChangeListeners.size(); for (int i = 0; i < count; i++) { mOnPageChangeListeners.get(i).onPageSelected(position); diff --git a/src/com/android/dialer/list/SearchFragment.java b/src/com/android/dialer/list/SearchFragment.java index 5cb30b6b9..e2046e71c 100644 --- a/src/com/android/dialer/list/SearchFragment.java +++ b/src/com/android/dialer/list/SearchFragment.java @@ -69,6 +69,7 @@ public class SearchFragment extends PhoneNumberPickerFragment { setDarkTheme(false); setPhotoPosition(ContactListItemView.getDefaultPhotoPosition(false /* opposite */)); setUseCallableUri(true); + sendScreenView(); try { mActivityScrollListener = (OnListFragmentScrolledListener) activity; |