summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2014-03-05 22:05:58 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-03-05 22:05:58 +0000
commit49a96b63c4b38b9840f1b0622b10c2ab192571c4 (patch)
treea5ecc054a9fd5828ed4231b50c141bc5b93a5844 /src
parent6cb95da2b6c037a612cedd738c56021e01da3d36 (diff)
parent950e3ebcf8059cb6fc2ce0d3a4e1df29be4540db (diff)
Merge "Restricted the tap target for "All Contacts" to the "All Contacts" button alone,"
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();