diff options
author | Jay Shrauner <shrauner@google.com> | 2013-08-23 11:49:48 -0700 |
---|---|---|
committer | Jay Shrauner <shrauner@google.com> | 2013-08-27 16:03:12 -0700 |
commit | 628dd491a31c29c6536764fd4a5de7697f8e1930 (patch) | |
tree | e662d6fd66a92b15c231f3d9b46e74a919ab7e8a | |
parent | 70a87fcd5478054a7b53e372485cbe9a9b621a15 (diff) |
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
-rw-r--r-- | src/com/android/dialer/SearchFragment.java | 3 |
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 |