diff options
author | Nancy Chen <nancychen@google.com> | 2014-08-06 01:23:24 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-08-06 01:23:24 +0000 |
commit | b6f2873cc2f0ad74298393043d546fed82d61c6e (patch) | |
tree | f2c7feb6df5b3d79f3f59817dc91980f9b18b89f | |
parent | 31f74fb528f70520e469e1e15811d7cfd4916133 (diff) | |
parent | 772e6410e595699080ccf2157dadcbd41228a189 (diff) |
am 772e6410: am 70da7606: Merge "Update directory header to not pin the headers and update style" into lmp-dev
* commit '772e6410e595699080ccf2157dadcbd41228a189':
Update directory header to not pin the headers and update style
-rw-r--r-- | res/values/dimens.xml | 2 | ||||
-rw-r--r-- | src/com/android/dialer/list/SearchFragment.java | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 5b8c0df4e..4884bd219 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -110,7 +110,7 @@ <dimen name="search_box_expanded_text_margin_left">26dp</dimen> <!-- Size of the icon (voice search, close search) in the search box. --> <dimen name="search_box_icon_size">28dp</dimen> - <dimen name="search_list_padding_top">8dp</dimen> + <dimen name="search_list_padding_top">16dp</dimen> <dimen name="search_box_elevation">2dp</dimen> <!-- Padding to the left and right of call log action buttons. --> diff --git a/src/com/android/dialer/list/SearchFragment.java b/src/com/android/dialer/list/SearchFragment.java index e2cea418f..5cb30b6b9 100644 --- a/src/com/android/dialer/list/SearchFragment.java +++ b/src/com/android/dialer/list/SearchFragment.java @@ -144,6 +144,15 @@ public class SearchFragment extends PhoneNumberPickerFragment { } @Override + protected void configureAdapter() { + super.configureAdapter(); + final ContactEntryListAdapter adapter = getAdapter(); + if (adapter != null) { + getAdapter().setPinnedPartitionHeadersEnabled(false); + } + } + + @Override protected void onItemClick(int position, long id) { final DialerPhoneNumberListAdapter adapter = (DialerPhoneNumberListAdapter) getAdapter(); final int shortcutType = adapter.getShortcutTypeFromPosition(position); |