diff options
author | Sai Cheemalapati <saicheems@google.com> | 2014-08-06 18:52:53 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-08-06 17:14:55 +0000 |
commit | 106af730bde43b0e97849b95591ec0804e17b5d5 (patch) | |
tree | 352a6d506fdaa20d90da9d111a6f494f8350cd62 /src | |
parent | 8fd67244fcd6a4fbcd0c534c530e237ab2f055c0 (diff) | |
parent | 2d7faf6c13212f8a035609181de4f594a76af960 (diff) |
Merge "Fragments in Dialtacts report to Analytics." into lmp-dev
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 ba9004edd..4cc11eba0 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -617,6 +617,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O } mIsDialpadShown = true; mDialpadFragment.setAnimate(animate); + mDialpadFragment.sendScreenView(); final FragmentTransaction ft = getFragmentManager().beginTransaction(); ft.show(mDialpadFragment); @@ -879,7 +880,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 027db8811..d993b237f 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; |