From 628dd491a31c29c6536764fd4a5de7697f8e1930 Mon Sep 17 00:00:00 2001 From: Jay Shrauner Date: Fri, 23 Aug 2013 11:49:48 -0700 Subject: Cap number of GAL results in Dialer Cap number of people shown from GAL in Dialer search results at 5. Bug:10457343 Change-Id: I0ea1ad3ff79ff80c6d06ea87905e46c11103d67a --- src/com/android/dialer/SearchFragment.java | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3