Skip to content

Commit

Permalink
For mozilla-mobile#23121 - Replace @drawble/ic_delete with @drawable/…
Browse files Browse the repository at this point in the history
…mozac_ic_delete
  • Loading branch information
gabrielluong committed Jan 20, 2022
1 parent d0ace12 commit 0388535
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class SwipeToDeleteCallback(
isCurrentlyActive: Boolean
) {
super.onChildDraw(c, recyclerView, viewHolder, dX, dY, actionState, isCurrentlyActive)
val icon = AppCompatResources.getDrawable(recyclerView.context, R.drawable.ic_delete)
val icon = AppCompatResources.getDrawable(recyclerView.context, R.drawable.mozac_ic_delete)
icon?.setTint(recyclerView.context.getColorFromAttr(R.attr.destructive))

val backgroundDrawable = when {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class DownloadsListItemViewHolder(

librarySiteItemBinding.favicon.setImageResource(item.getIcon())

librarySiteItemBinding.overflowMenu.setImageResource(R.drawable.ic_delete)
librarySiteItemBinding.overflowMenu.setImageResource(R.drawable.mozac_ic_delete)

librarySiteItemBinding.overflowMenu.showAndEnable()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class TouchCallback(
}

val icon = recyclerView.context.getDrawableWithTint(
R.drawable.ic_delete,
R.drawable.mozac_ic_delete,
recyclerView.context.getColorFromAttr(R.attr.destructive)
)!!
val background = AppCompatResources.getDrawable(
Expand Down
16 changes: 0 additions & 16 deletions app/src/main/res/drawable/ic_delete.xml

This file was deleted.

2 changes: 1 addition & 1 deletion app/src/main/res/layout/inactive_header_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_delete" />
app:srcCompat="@drawable/mozac_ic_delete" />

</androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout>
2 changes: 1 addition & 1 deletion app/src/main/res/menu/bookmarks_edit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/delete_bookmark_button"
android:icon="@drawable/ic_delete"
android:icon="@drawable/mozac_ic_delete"
app:iconTint="?primaryText"
android:title="@string/bookmark_menu_delete_button"
android:contentDescription="@string/bookmark_menu_delete_button"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/menu/credit_card_editor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/delete_credit_card_button"
android:icon="@drawable/ic_delete"
android:icon="@drawable/mozac_ic_delete"
android:title="@string/credit_cards_menu_delete_card"
android:visible="false"
app:iconTint="?primaryText"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/menu/history_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/history_delete_all"
android:icon="@drawable/ic_delete"
android:icon="@drawable/mozac_ic_delete"
android:title="@string/history_delete_all"
app:iconTint="?primaryText"
app:showAsAction="ifRoom" />
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/menu/login_options_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<item
android:id="@+id/delete_login_button"
android:contentDescription="@string/login_menu_delete_button"
android:icon="@drawable/ic_delete"
android:icon="@drawable/mozac_ic_delete"
android:minWidth="82dp"
android:padding="20dp"
android:paddingStart="20dp"
Expand Down

0 comments on commit 0388535

Please sign in to comment.