From cd7355861bdc0ca43873b8aab2e40e9b38f617e1 Mon Sep 17 00:00:00 2001 From: Nancy Chen Date: Tue, 5 Aug 2014 14:45:47 -0700 Subject: Update directory header to not pin the headers and update style Turned the scrolling directory list headers into normal headers and updated colors. Bug: 15596340 Change-Id: I911ba45e2164b064d5e9aeb256f7b83b39c453b1 --- res/values/dimens.xml | 2 +- src/com/android/dialer/list/SearchFragment.java | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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 @@ 26dp 28dp - 8dp + 16dp 2dp 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 @@ -143,6 +143,15 @@ public class SearchFragment extends PhoneNumberPickerFragment { return adapter; } + @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(); -- cgit v1.2.3