diff options
author | Jay Shrauner <shrauner@google.com> | 2014-03-04 22:52:59 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-03-04 22:52:59 +0000 |
commit | 0648ab9d3ec6bf2ea6bc678d80c482819a4e8453 (patch) | |
tree | 7328dff5078390ab32b09ea5776145de4d6651ab /src | |
parent | 04717efa7cb23244a63d5146b28319801a1abf73 (diff) | |
parent | 25c9f2493afbd163e0e5547942c7463073e5041a (diff) |
Merge "Always show overflow icon for quick contacts affordance" into klp-dev
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/list/PhoneFavoriteSquareTileView.java | 24 | ||||
-rw-r--r-- | src/com/android/dialer/list/PhoneFavoriteTileView.java | 4 |
2 files changed, 6 insertions, 22 deletions
diff --git a/src/com/android/dialer/list/PhoneFavoriteSquareTileView.java b/src/com/android/dialer/list/PhoneFavoriteSquareTileView.java index e855c88c5..181d602bc 100644 --- a/src/com/android/dialer/list/PhoneFavoriteSquareTileView.java +++ b/src/com/android/dialer/list/PhoneFavoriteSquareTileView.java @@ -62,24 +62,12 @@ public class PhoneFavoriteSquareTileView extends PhoneFavoriteTileView { public void loadFromContact(ContactEntry entry) { super.loadFromContact(entry); if (entry != null) { - final boolean contactIsFavorite = entry.isFavorite; - mSecondaryButton.setVisibility(contactIsFavorite ? GONE : VISIBLE); - - if (contactIsFavorite) { - mStarView.setOnClickListener(new OnClickListener() { - @Override - public void onClick(View v) { - launchQuickContact(); - } - }); - } else { - mSecondaryButton.setOnClickListener(new OnClickListener() { - @Override - public void onClick(View v) { - launchQuickContact(); - } - }); - } + mSecondaryButton.setOnClickListener(new OnClickListener() { + @Override + public void onClick(View v) { + launchQuickContact(); + } + }); } } } diff --git a/src/com/android/dialer/list/PhoneFavoriteTileView.java b/src/com/android/dialer/list/PhoneFavoriteTileView.java index 371c8057c..7697ff7a1 100644 --- a/src/com/android/dialer/list/PhoneFavoriteTileView.java +++ b/src/com/android/dialer/list/PhoneFavoriteTileView.java @@ -60,8 +60,6 @@ public abstract class PhoneFavoriteTileView extends ContactTileView { private View mUndoRemovalButton; /** The view that holds the list view row. */ protected ContactTileRow mParentRow; - /** The view that indicates whether the contact is a favorate. */ - protected ImageView mStarView; /** Users' most frequent phone number. */ private String mPhoneNumberString; @@ -89,7 +87,6 @@ public abstract class PhoneFavoriteTileView extends ContactTileView { mRemovalDialogue = findViewById(com.android.dialer.R.id.favorite_remove_dialogue); mUndoRemovalButton = findViewById(com.android.dialer.R.id .favorite_remove_undo_button); - mStarView = (ImageView) findViewById(com.android.dialer.R.id.contact_favorite_star); mUndoRemovalButton.setOnClickListener(new OnClickListener() { @Override @@ -127,7 +124,6 @@ public abstract class PhoneFavoriteTileView extends ContactTileView { // Grab the phone-number to call directly... see {@link onClick()} mPhoneNumberString = entry.phoneNumber; - mStarView.setVisibility(entry.isFavorite ? VISIBLE : GONE); // If this is a blank entry, don't show anything. // TODO krelease:Just hide the view for now. For this to truly look like an empty row // the entire ContactTileRow needs to be hidden. |