From 60748091dfc028ed732aa75f0464fdf08a6efde5 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Mon, 30 Sep 2013 15:44:48 -0700 Subject: Clicking on dialer directory headers scrolls to selected directory Enable setScrollToSectionOnHeaderTouch for dialer search Bug: 10991974 Change-Id: If6021ece166ae0cba8bb3a9f1db77c7b3f8a9e5c --- src/com/android/dialer/list/RegularSearchFragment.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/com/android/dialer/list/RegularSearchFragment.java b/src/com/android/dialer/list/RegularSearchFragment.java index 21c8c3155..9f4e6bec9 100644 --- a/src/com/android/dialer/list/RegularSearchFragment.java +++ b/src/com/android/dialer/list/RegularSearchFragment.java @@ -15,7 +15,11 @@ */ package com.android.dialer.list; +import android.view.LayoutInflater; +import android.view.ViewGroup; + import com.android.contacts.common.list.ContactEntryListAdapter; +import com.android.contacts.common.list.PinnedHeaderListView; import com.android.dialerbind.ObjectFactory; import com.android.dialer.service.CachedNumberLookupService; @@ -36,6 +40,11 @@ public class RegularSearchFragment extends SearchFragment { } @Override + protected void onCreateView(LayoutInflater inflater, ViewGroup container) { + super.onCreateView(inflater, container); + ((PinnedHeaderListView) getListView()).setScrollToSectionOnHeaderTouch(true); + } + protected ContactEntryListAdapter createListAdapter() { RegularSearchListAdapter adapter = new RegularSearchListAdapter(getActivity()); adapter.setDisplayPhotos(true); -- cgit v1.2.3