Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3bae6dba authored by Sean Liu's avatar Sean Liu Committed by Android (Google) Code Review
Browse files

Merge "Adding circle ripple for X button"

parents f13cb2fd ae949934
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1291,6 +1291,12 @@ public class ContactListItemView extends ViewGroup
            mDeleteImageButton.setBackgroundColor(Color.TRANSPARENT);
            mDeleteImageButton.setContentDescription(
                    getResources().getString(R.string.description_delete_contact));
            if (CompatUtils. isLollipopCompatible()) {
                final TypedValue typedValue = new TypedValue();
                getContext().getTheme().resolveAttribute(
                        android.R.attr.selectableItemBackgroundBorderless, typedValue, true);
                mDeleteImageButton.setBackgroundResource(typedValue.resourceId);
            }
            addView(mDeleteImageButton);
        }
        // Reset onClickListener because after reloading the view, position might be changed.