summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-08-12 11:04:47 -0700
committerYorke Lee <yorkelee@google.com>2013-08-12 11:04:47 -0700
commit63ea4cd19569c8d5ee6f9a7ce2c933d09359fc0b (patch)
tree0f8bfb8dd4250edd9330aab662065522574f92fd
parentc8f977ed41199b85fa995b38e93ae546eab045cf (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.java4
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;
}