diff options
author | Yorke Lee <yorkelee@google.com> | 2013-10-02 18:33:48 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-10-02 18:33:49 +0000 |
commit | 769ad7e024e4bf9f3352aaefbef9af9d10b762b3 (patch) | |
tree | eeff6527d6a68f886100b7ae90c887b88fa351c0 | |
parent | eef089d0ddd9214f552b7e354e69dd83d0c27c51 (diff) | |
parent | 60748091dfc028ed732aa75f0464fdf08a6efde5 (diff) |
Merge "Clicking on dialer directory headers scrolls to selected directory" into klp-dev
-rw-r--r-- | src/com/android/dialer/list/RegularSearchFragment.java | 9 |
1 files changed, 9 insertions, 0 deletions
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); |