Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d7faf6c authored by Sai Cheemalapati's avatar Sai Cheemalapati
Browse files

Fragments in Dialtacts report to Analytics.

Fragments in DialtactsActivity now report to Analytics when viewed.

Change-Id: I86d6cabc372bd466a4907d79b1613e5ae1445227
parent 49447a98
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
+7 −0
Original line number Diff line number Diff line
@@ -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);
+1 −0
Original line number Diff line number Diff line
@@ -69,6 +69,7 @@ public class SearchFragment extends PhoneNumberPickerFragment {
        setDarkTheme(false);
        setPhotoPosition(ContactListItemView.getDefaultPhotoPosition(false /* opposite */));
        setUseCallableUri(true);
        sendScreenView();

        try {
            mActivityScrollListener = (OnListFragmentScrolledListener) activity;