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

Commit 5781afe9 authored by Yorke Lee's avatar Yorke Lee
Browse files

Persist favorites clicked listener across activity destruction

Bug: 10289904
Change-Id: I7282cd6c2a4c938131b88ab10d2fc73897c0b65c
parent c8f977ed
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);
@@ -313,6 +312,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
            mRegularSearchFragment = (SearchFragment) fragment;
        } else if (fragment instanceof PhoneFavoriteFragment) {
            mPhoneFavoriteFragment = (PhoneFavoriteFragment) fragment;
            mPhoneFavoriteFragment.setListener(mPhoneFavoriteListener);
        }
    }