summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2014-03-05 13:58:03 -0800
committerTyler Gunn <tgunn@google.com>2014-03-05 13:58:03 -0800
commit950e3ebcf8059cb6fc2ce0d3a4e1df29be4540db (patch)
tree1207bb7ac0cd264149d8465fa5926cef549cb31f /src
parentc930321e4f1a6cf2a34b5db461ca7be1917669e4 (diff)
Restricted the tap target for "All Contacts" to the "All Contacts" button alone,
Bug: 13322769 Change-Id: Iea2bd8886efed50b5b5e463c6e9205af4ad97a6c
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/list/PhoneFavoriteFragment.java8
1 files changed, 4 insertions, 4 deletions
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();