diff options
author | Jay Shrauner <shrauner@google.com> | 2014-03-04 22:56:20 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-04 22:56:20 +0000 |
commit | 6b4585087ce1c338eb5b74d1613e6274d60b7b11 (patch) | |
tree | 7d2879c298cad7b1fd9d11b5141f7b1c0d36d6c3 | |
parent | 714104dd1e04446d7511bdbd5394817a8725cafa (diff) | |
parent | 0648ab9d3ec6bf2ea6bc678d80c482819a4e8453 (diff) |
am 0648ab9d: Merge "Always show overflow icon for quick contacts affordance" into klp-dev
* commit '0648ab9d3ec6bf2ea6bc678d80c482819a4e8453':
Always show overflow icon for quick contacts affordance
-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 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. |