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

Commit 63ea4cd1 authored by Yorke Lee's avatar Yorke Lee
Browse files

Add onPhoneNumberPickerActionListeners to search fragments

Fix regression (crash on phone number selected) caused by
https://googleplex-android-review.googlesource.com/#/c/341604/

Change-Id: I8bc6850b3b2809f9919edbdbdb308af0402d7035
parent c8f977ed
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -309,8 +309,12 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
            transaction.commit();
        } else if (fragment instanceof SmartDialSearchFragment) {
            mSmartDialSearchFragment = (SmartDialSearchFragment) fragment;
            mSmartDialSearchFragment.setOnPhoneNumberPickerActionListener(
                    mPhoneNumberPickerActionListener);
        } else if (fragment instanceof SearchFragment) {
            mRegularSearchFragment = (SearchFragment) fragment;
            mRegularSearchFragment.setOnPhoneNumberPickerActionListener(
                    mPhoneNumberPickerActionListener);
        } else if (fragment instanceof PhoneFavoriteFragment) {
            mPhoneFavoriteFragment = (PhoneFavoriteFragment) fragment;
        }