Skip to content

Commit 9805bf4

Browse files
committed
Use independent, local icon drawables
1 parent e5a743f commit 9805bf4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

bazaar/src/main/java/kz/zhombie/bazaar/ui/media/audible/AudiosAdapter.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ internal class AudiosAdapter constructor(
203203
toggleSelectionAbility(uiMultimedia)
204204

205205
if (currentPlayingAudioPosition == bindingAdapterPosition) {
206-
playOrPauseButton.setIconResource(R.drawable.exo_icon_pause)
206+
playOrPauseButton.setIconResource(R.drawable.bazaar_ic_pause)
207207
} else {
208-
playOrPauseButton.setIconResource(R.drawable.exo_icon_play)
208+
playOrPauseButton.setIconResource(R.drawable.bazaar_ic_play)
209209
}
210210

211211
if (uiMultimedia.isSelected) {
@@ -274,9 +274,9 @@ internal class AudiosAdapter constructor(
274274
fun togglePlaying(uiMultimedia: UIMultimedia, isPlaying: Boolean) {
275275
Logger.d(TAG, "togglePlaying() -> uiMultimedia: $uiMultimedia, isPlaying: $isPlaying")
276276
if (isPlaying) {
277-
playOrPauseButton.setIconResource(R.drawable.exo_icon_pause)
277+
playOrPauseButton.setIconResource(R.drawable.bazaar_ic_pause)
278278
} else {
279-
playOrPauseButton.setIconResource(R.drawable.exo_icon_play)
279+
playOrPauseButton.setIconResource(R.drawable.bazaar_ic_play)
280280
}
281281
}
282282

bazaar/src/main/res/layout/bazaar_cell_audio.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
android:minHeight="0dp"
3636
android:minWidth="0dp"
3737
android:text="@null"
38-
app:icon="@drawable/exo_icon_play"
38+
app:icon="@drawable/bazaar_ic_play"
3939
app:iconGravity="textEnd"
4040
app:iconPadding="0dp"
41-
app:iconSize="30dp"
41+
app:iconSize="16dp"
4242
app:iconTint="@null"
4343
app:rippleColor="?attr/colorControlHighlight"
4444
app:shapeAppearance="@style/Bazaar.CircularShapeAppearance" />

0 commit comments

Comments
 (0)