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

Commit 9028f6e6 authored by Sai Cheemalapati's avatar Sai Cheemalapati
Browse files

Fixing possible crash on tab switch.

Bug: 16873267
Change-Id: I66309fad4b2e49dd5ca8ba0d17a88a6a0ede07a9
parent ba1fca91
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -331,11 +331,11 @@ public class ListsFragment extends AnalyticsFragment implements CallLogQueryHand

    @Override
    public void onPageSelected(int position) {
        if (position == TAB_INDEX_SPEED_DIAL) {
        if (position == TAB_INDEX_SPEED_DIAL && mSpeedDialFragment != null) {
            mSpeedDialFragment.sendScreenView();
        } else if (position == TAB_INDEX_RECENTS) {
        } else if (position == TAB_INDEX_RECENTS && mRecentsFragment != null) {
            mRecentsFragment.sendScreenView();
        } else if (position == TAB_INDEX_ALL_CONTACTS) {
        } else if (position == TAB_INDEX_ALL_CONTACTS && mAllContactsFragment != null) {
            mAllContactsFragment.sendScreenView();
        }
        final int count = mOnPageChangeListeners.size();