summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-09-30 15:44:48 -0700
committerYorke Lee <yorkelee@google.com>2013-10-01 11:48:41 -0700
commit60748091dfc028ed732aa75f0464fdf08a6efde5 (patch)
tree0e7ead2a4f1f83031e67be8592cac1db4f9822f4 /src
parent095f112b1bd44ac6d1d2fd80b515a76ea40ca586 (diff)
Clicking on dialer directory headers scrolls to selected directory
Enable setScrollToSectionOnHeaderTouch for dialer search Bug: 10991974 Change-Id: If6021ece166ae0cba8bb3a9f1db77c7b3f8a9e5c
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/list/RegularSearchFragment.java9
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);