diff options
author | Yorke Lee <yorkelee@google.com> | 2013-08-19 12:44:32 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2013-08-19 12:44:32 -0700 |
commit | cb457d3ddd9769a9e4c552cce027f249d1f5d4a1 (patch) | |
tree | 1aa4f63103d687d3b58f5d767210455734c5b22f | |
parent | d79227c12c925806fe2a40b3d7ac5a6a53096701 (diff) |
Disable directory search on smart dialing fragment
Bug: 10391446
Change-Id: I2f1d070823e29eda76991fff4766da3ca6ec12cf
-rw-r--r-- | src/com/android/dialer/SearchFragment.java | 4 | ||||
-rw-r--r-- | src/com/android/dialer/list/SmartDialSearchFragment.java | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/dialer/SearchFragment.java b/src/com/android/dialer/SearchFragment.java index 86cd87323..38b7e7758 100644 --- a/src/com/android/dialer/SearchFragment.java +++ b/src/com/android/dialer/SearchFragment.java @@ -31,6 +31,10 @@ public class SearchFragment extends PhoneNumberPickerFragment { private OnListFragmentScrolledListener mActivityScrollListener; public SearchFragment() { + configureDirectorySearch(); + } + + public void configureDirectorySearch() { setDirectorySearchEnabled(true); } diff --git a/src/com/android/dialer/list/SmartDialSearchFragment.java b/src/com/android/dialer/list/SmartDialSearchFragment.java index 492073fb5..fd2aa357e 100644 --- a/src/com/android/dialer/list/SmartDialSearchFragment.java +++ b/src/com/android/dialer/list/SmartDialSearchFragment.java @@ -31,6 +31,11 @@ import com.android.dialer.dialpad.SmartDialCursorLoader; public class SmartDialSearchFragment extends SearchFragment { private static final String TAG = SmartDialSearchFragment.class.getSimpleName(); + @Override + public void configureDirectorySearch() { + setDirectorySearchEnabled(false); + } + /** * Creates a SmartDialListAdapter to display and operate on search results. */ |