summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-08-19 20:36:34 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-08-19 20:36:34 +0000
commit5bcd6b54457657494eec81c5ceda78f9cf682afb (patch)
treee8e3948bf7fda5e1cf9edda359de48958816366b
parent2b2808cb8684093198e952ea0736d0e3e139bd51 (diff)
parentcb457d3ddd9769a9e4c552cce027f249d1f5d4a1 (diff)
Merge "Disable directory search on smart dialing fragment" into klp-dev
-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.
*/