[Android] Fix audioplayer crash on pre-lollipop devices
Geoffrey Métais
git at videolan.org
Mon Nov 12 18:41:27 CET 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Nov 12 18:40:04 2018 +0100| [c6d91ee370f852500976d540e831696724d0eff0] | committer: Geoffrey Métais
Fix audioplayer crash on pre-lollipop devices
> https://code.videolan.org/videolan/vlc-android/commit/c6d91ee370f852500976d540e831696724d0eff0
---
vlc-android/res/drawable-v21/po_seekbar.xml | 26 ++++++++++++++++++++++++++
vlc-android/res/drawable/po_seekbar.xml | 2 +-
2 files changed, 27 insertions(+), 1 deletion(-)
diff --git a/vlc-android/res/drawable-v21/po_seekbar.xml b/vlc-android/res/drawable-v21/po_seekbar.xml
new file mode 100644
index 000000000..3acfa6311
--- /dev/null
+++ b/vlc-android/res/drawable-v21/po_seekbar.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item android:id="@android:id/background">
+ <shape>
+ <solid android:color="?attr/progress_background" />
+ </shape>
+ </item>
+
+ <item android:id="@android:id/secondaryProgress">
+ <clip>
+ <shape>
+ <solid android:color="@color/grey400transparent" />
+ </shape>
+ </clip>
+ </item>
+
+ <item android:id="@android:id/progress">
+ <clip>
+ <shape>
+ <solid android:color="@color/orange500transparent" />
+ </shape>
+ </clip>
+ </item>
+
+</layer-list>
\ No newline at end of file
diff --git a/vlc-android/res/drawable/po_seekbar.xml b/vlc-android/res/drawable/po_seekbar.xml
index 3acfa6311..40d760470 100644
--- a/vlc-android/res/drawable/po_seekbar.xml
+++ b/vlc-android/res/drawable/po_seekbar.xml
@@ -3,7 +3,7 @@
<item android:id="@android:id/background">
<shape>
- <solid android:color="?attr/progress_background" />
+ <solid android:color="@color/grey400transparent" />
</shape>
</item>
More information about the Android
mailing list