From 950e3ebcf8059cb6fc2ce0d3a4e1df29be4540db Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Wed, 5 Mar 2014 13:58:03 -0800 Subject: Restricted the tap target for "All Contacts" to the "All Contacts" button alone, Bug: 13322769 Change-Id: Iea2bd8886efed50b5b5e463c6e9205af4ad97a6c --- src/com/android/dialer/list/PhoneFavoriteFragment.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/com/android/dialer/list/PhoneFavoriteFragment.java b/src/com/android/dialer/list/PhoneFavoriteFragment.java index 79dbe8c49..675a40f0d 100644 --- a/src/com/android/dialer/list/PhoneFavoriteFragment.java +++ b/src/com/android/dialer/list/PhoneFavoriteFragment.java @@ -673,12 +673,12 @@ public class PhoneFavoriteFragment extends Fragment implements OnItemClickListen /** * Prepares the favorites menu which contains the static label "Speed Dial" and the - * "All Contacts" button. Taps anywhere in the view take the user to "All Contacts". - * This emulates how the headers in Play Store work. + * "All Contacts" button. Sets the onClickListener for the "All Contacts" button. */ private void prepareFavoritesMenu(View favoritesMenu) { - // Set the onClick listener for the view to bring up the all contacts view. - favoritesMenu.setOnClickListener(new OnClickListener() { + Button allContactsButton = (Button) favoritesMenu.findViewById(R.id.all_contacts_button); + // Set the onClick listener for the button to bring up the all contacts view. + allContactsButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View view) { showAllContacts(); -- cgit v1.2.3