diff options
author | Yorke Lee <yorkelee@google.com> | 2013-08-12 11:04:47 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2013-08-12 11:04:47 -0700 |
commit | 63ea4cd19569c8d5ee6f9a7ce2c933d09359fc0b (patch) | |
tree | 0f8bfb8dd4250edd9330aab662065522574f92fd | |
parent | c8f977ed41199b85fa995b38e93ae546eab045cf (diff) |
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
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index 316465e74..e7a7de90c 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -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; } |