diff options
author | Yorke Lee <yorkelee@google.com> | 2015-10-09 11:37:34 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-10-09 11:37:34 -0700 |
commit | 46959e92623e635967fb264ab72b77f93e86002c (patch) | |
tree | 37c56791dab5166d5729e236fed7d153853a865b /src/com/android/dialer/DialtactsActivity.java | |
parent | c7f8899a3ea60fb2c1059b79c18d2b4bc2511c6b (diff) |
Fix crash in BlockedNumberSearchActivity
Don't require RegularSearchFragment's parent activity to
implement CapabilityChecker interface. In the context of the
BlockedNumberSearchActivity this functionality is not needed.
Bug: 24804134
Change-Id: I848ae66c6f8afc6e60b19bc28e933ae1e2f59893
Diffstat (limited to 'src/com/android/dialer/DialtactsActivity.java')
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index 4bfd56594..d44e8e7cf 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -110,7 +110,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O ListsFragment.HostInterface, SpeedDialFragment.HostInterface, SearchFragment.HostInterface, - RegularSearchFragment.HostInterface, + RegularSearchFragment.CapabilityChecker, OnDragDropListener, OnPhoneNumberPickerActionListener, PopupMenu.OnMenuItemClickListener, @@ -607,6 +607,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O } else if (fragment instanceof SearchFragment) { mRegularSearchFragment = (RegularSearchFragment) fragment; mRegularSearchFragment.setOnPhoneNumberPickerActionListener(this); + mRegularSearchFragment.setCapabilityChecker(this); } else if (fragment instanceof ListsFragment) { mListsFragment = (ListsFragment) fragment; mListsFragment.addOnPageChangeListener(this); |