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

Commit 598e9a68 authored by Yorke Lee's avatar Yorke Lee Committed by Android (Google) Code Review
Browse files

Merge "Persist favorites clicked listener across activity destruction" into klp-dev

parents 63ea4cd1 5781afe9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -262,7 +262,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
        // is null. Otherwise the fragment manager takes care of recreating these fragments.
        if (savedInstanceState == null) {
            final PhoneFavoriteFragment phoneFavoriteFragment = new PhoneFavoriteFragment();
            phoneFavoriteFragment.setListener(mPhoneFavoriteListener);

            final FragmentTransaction ft = getFragmentManager().beginTransaction();
            ft.add(R.id.dialtacts_frame, phoneFavoriteFragment, TAG_FAVORITES_FRAGMENT);
@@ -317,6 +316,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
                    mPhoneNumberPickerActionListener);
        } else if (fragment instanceof PhoneFavoriteFragment) {
            mPhoneFavoriteFragment = (PhoneFavoriteFragment) fragment;
            mPhoneFavoriteFragment.setListener(mPhoneFavoriteListener);
        }
    }