summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/com/android/dialer/SearchFragment.java4
-rw-r--r--src/com/android/dialer/list/SmartDialSearchFragment.java5
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.
*/