summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Shrauner <shrauner@google.com>2013-08-28 18:01:04 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-08-28 18:01:04 +0000
commitcd56a2822bf99d79b712326f2d439c26c52ccf8e (patch)
tree7ec77ada64ae0fd4392174247383fe35a688601f
parent7c3f4fbc521cb4f65d30d371410faba746d94bf5 (diff)
parent628dd491a31c29c6536764fd4a5de7697f8e1930 (diff)
Merge "Cap number of GAL results in Dialer" into klp-dev
-rw-r--r--src/com/android/dialer/SearchFragment.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/dialer/SearchFragment.java b/src/com/android/dialer/SearchFragment.java
index a0b890823..0a97804e0 100644
--- a/src/com/android/dialer/SearchFragment.java
+++ b/src/com/android/dialer/SearchFragment.java
@@ -26,6 +26,8 @@ import com.android.dialer.list.OnListFragmentScrolledListener;
public class SearchFragment extends PhoneNumberPickerFragment {
+ private static final int SEARCH_DIRECTORY_RESULT_LIMIT = 5;
+
private OnListFragmentScrolledListener mActivityScrollListener;
public SearchFragment() {
@@ -34,6 +36,7 @@ public class SearchFragment extends PhoneNumberPickerFragment {
public void configureDirectorySearch() {
setDirectorySearchEnabled(true);
+ setDirectoryResultLimit(SEARCH_DIRECTORY_RESULT_LIMIT);
}
@Override