[Android] Fix crash on API < 21

Nicolas Pomepuy git at videolan.org
Wed Aug 5 14:25:24 CEST 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Aug  4 06:48:02 2020 +0200| [6fdb4c341c227db60fb3cff0b3e2749809bf804b] | committer: Nicolas Pomepuy

Fix crash on API < 21

> https://code.videolan.org/videolan/vlc-android/commit/6fdb4c341c227db60fb3cff0b3e2749809bf804b
---

 application/vlc-android/res/layout-v21/mrl_panel.xml | 2 +-
 application/vlc-android/res/layout/mrl_panel.xml     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/application/vlc-android/res/layout-v21/mrl_panel.xml b/application/vlc-android/res/layout-v21/mrl_panel.xml
index a1041c337..3442e61e9 100644
--- a/application/vlc-android/res/layout-v21/mrl_panel.xml
+++ b/application/vlc-android/res/layout-v21/mrl_panel.xml
@@ -66,7 +66,7 @@
                         android:layout_marginEnd="16dp"
                         android:contentDescription="@string/play_button"
                         android:scaleType="center"
-                        android:src="@drawable/ic_send"
+                        app:srcCompat="@drawable/ic_send"
                         android:background="?attr/selectableItemBackgroundBorderless"
                         app:layout_constraintBottom_toBottomOf="@+id/mrl_edit"
                         app:layout_constraintEnd_toEndOf="parent"
diff --git a/application/vlc-android/res/layout/mrl_panel.xml b/application/vlc-android/res/layout/mrl_panel.xml
index f07c6d713..a094d0aef 100644
--- a/application/vlc-android/res/layout/mrl_panel.xml
+++ b/application/vlc-android/res/layout/mrl_panel.xml
@@ -66,7 +66,7 @@
                         android:layout_marginEnd="16dp"
                         android:contentDescription="@string/play_button"
                         android:scaleType="center"
-                        android:src="@drawable/ic_send"
+                        app:srcCompat="@drawable/ic_send"
                         android:background="?attr/selectableItemBackgroundBorderless"
                         app:layout_constraintBottom_toBottomOf="@+id/mrl_edit"
                         app:layout_constraintEnd_toEndOf="parent"



More information about the Android mailing list