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

Commit 8bc531bc authored by Yorke Lee's avatar Yorke Lee Committed by Android Git Automerger
Browse files

am b9618446: am 0230ec94: Fix crash when switching between LTR/RTL

* commit 'b9618446':
  Fix crash when switching between LTR/RTL
parents d8129f29 b9618446
Loading
Loading
Loading
Loading
+9 −12
Original line number Diff line number Diff line
@@ -205,19 +205,16 @@ public class ListsFragment extends AnalyticsFragment implements CallLogQueryHand
            // On rotation the FragmentManager handles rotation. Therefore getItem() isn't called.
            // Copy the fragments that the FragmentManager finds so that we can store them in
            // instance variables for later.
            final Fragment fragment = (Fragment) super.instantiateItem(container, position);
            switch (getRtlPosition(position)) {
                case TAB_INDEX_SPEED_DIAL:
            final Fragment fragment =
                    (Fragment) super.instantiateItem(container, getRtlPosition(position));
            if (fragment instanceof SpeedDialFragment) {
                mSpeedDialFragment = (SpeedDialFragment) fragment;
                    return mSpeedDialFragment;
                case TAB_INDEX_RECENTS:
            } else if (fragment instanceof CallLogFragment) {
                mRecentsFragment = (CallLogFragment) fragment;
                    return mRecentsFragment;
                case TAB_INDEX_ALL_CONTACTS:
            } else if (fragment instanceof AllContactsFragment) {
                mAllContactsFragment = (AllContactsFragment) fragment;
                    return mAllContactsFragment;
            }
            return super.instantiateItem(container, position);
            return fragment;
        }

        @Override