[Android] Fix vector drawable crash on older API

Nicolas Pomepuy git at videolan.org
Wed May 18 09:50:19 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed May 18 11:42:38 2022 +0200| [1b3a5769bada607ee6ad5ad85c6ba58d0894d60d] | committer: Nicolas Pomepuy

Fix vector drawable crash on older API

> https://code.videolan.org/videolan/vlc-android/commit/1b3a5769bada607ee6ad5ad85c6ba58d0894d60d
---

 application/vlc-android/res/layout/playlist_activity.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/application/vlc-android/res/layout/playlist_activity.xml b/application/vlc-android/res/layout/playlist_activity.xml
index 2eb3ad76a..4134300fe 100644
--- a/application/vlc-android/res/layout/playlist_activity.xml
+++ b/application/vlc-android/res/layout/playlist_activity.xml
@@ -156,7 +156,7 @@
                             android:clickable="true"
                             android:foreground="?attr/selectableItemBackgroundBorderless"
                             android:padding="4dp"
-                            android:src="@drawable/ic_album_addtoplaylist"
+                            vlc:srcCompat="@drawable/ic_album_addtoplaylist"
                             vlc:layout_constraintBottom_toBottomOf="@id/play_btn"
                             vlc:layout_constraintStart_toEndOf="@id/play_btn"
                             vlc:layout_constraintTop_toTopOf="@id/play_btn" />
@@ -169,7 +169,7 @@
                             android:clickable="true"
                             android:foreground="?attr/selectableItemBackgroundBorderless"
                             android:padding="4dp"
-                            android:src="@drawable/ic_album_shuffle"
+                            vlc:srcCompat="@drawable/ic_album_shuffle"
                             vlc:layout_constraintBottom_toBottomOf="@id/play_btn"
                             vlc:layout_constraintStart_toEndOf="@id/btn_add_playlist"
                             vlc:layout_constraintTop_toTopOf="@id/play_btn" />



More information about the Android mailing list