diff options
author | Yorke Lee <yorkelee@google.com> | 2014-02-24 18:25:21 -0800 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-02-24 18:26:44 -0800 |
commit | 4661327a224545aa8f11f9b935800020d8bc2518 (patch) | |
tree | 59e81359a5fd63d164aaa9391da2898631a65f28 | |
parent | a8ff9750831fcc276354ed80fad3b54316489383 (diff) |
Always show overflow icon for quick contacts affordance
Remove the star icon used to bring up quick contacts, and in its
place, always show the overflow icon.
Bug: 13177113
Change-Id: I88e99b7c45da10013f4bdff879c106fac9e23f89
-rw-r--r-- | res/layout/phone_favorite_regular_row_view.xml | 12 | ||||
-rw-r--r-- | res/layout/phone_favorite_tile_view.xml | 20 | ||||
-rw-r--r-- | src/com/android/dialer/list/PhoneFavoriteSquareTileView.java | 24 | ||||
-rw-r--r-- | src/com/android/dialer/list/PhoneFavoriteTileView.java | 4 |
4 files changed, 6 insertions, 54 deletions
diff --git a/res/layout/phone_favorite_regular_row_view.xml b/res/layout/phone_favorite_regular_row_view.xml index 0d131f6fe..d046fdb3d 100644 --- a/res/layout/phone_favorite_regular_row_view.xml +++ b/res/layout/phone_favorite_regular_row_view.xml @@ -65,18 +65,6 @@ android:singleLine="true" android:textColor="@color/dialtacts_secondary_text_color" /> </LinearLayout> - <ImageView - android:id="@+id/contact_favorite_star" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignRight="@id/contact_tile_quick" - android:layout_alignEnd="@id/contact_tile_quick" - android:layout_alignBottom="@id/contact_tile_quick" - android:layout_marginRight="7dip" - android:layout_marginEnd="7dip" - android:layout_marginBottom="7dip" - android:src="@drawable/star_thumbnail" - android:visibility="gone" /> </RelativeLayout> diff --git a/res/layout/phone_favorite_tile_view.xml b/res/layout/phone_favorite_tile_view.xml index c4ad7800d..8562b36e0 100644 --- a/res/layout/phone_favorite_tile_view.xml +++ b/res/layout/phone_favorite_tile_view.xml @@ -85,26 +85,6 @@ android:nextFocusRight="@+id/contact_tile_secondary_button" android:background="?android:attr/selectableItemBackground" /> - <ImageView - android:id="@+id/contact_favorite_star" - android:background="?android:attr/selectableItemBackground" - android:layout_height="@dimen/contact_tile_info_button_height_and_width" - android:layout_width="@dimen/contact_tile_info_button_height_and_width" - android:paddingLeft="2dp" - android:paddingRight="2dp" - android:paddingStart="2dp" - android:paddingEnd="2dp" - android:paddingTop="2dp" - android:paddingBottom="2dp" - android:layout_alignParentTop="true" - android:layout_alignParentRight="true" - android:layout_alignParentEnd="true" - android:src="@drawable/star_thumbnail" - android:scaleType="center" - android:contentDescription="@string/description_view_contact_detail" - android:visibility="gone" /> - - <ImageButton android:id="@id/contact_tile_secondary_button" android:src="@drawable/overflow_thumbnail" 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 ecf561662..9d7dd5e93 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. |