[Android] Add an option to disable scroll animations

Geoffrey Métais git at videolan.org
Mon May 22 17:06:17 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon May 22 17:05:07 2017 +0200| [535a58f521049c1275d2c3629ef2a7cf4cefbc90] | committer: Geoffrey Métais

Add an option to disable scroll animations

> https://code.videolan.org/videolan/vlc-android/commit/535a58f521049c1275d2c3629ef2a7cf4cefbc90
---

 vlc-android/res/values/strings.xml        | 2 ++
 vlc-android/res/xml/preferences_audio.xml | 5 +++++
 2 files changed, 7 insertions(+)

diff --git a/vlc-android/res/values/strings.xml b/vlc-android/res/values/strings.xml
index c6d8a28..a01558d 100644
--- a/vlc-android/res/values/strings.xml
+++ b/vlc-android/res/values/strings.xml
@@ -317,6 +317,8 @@
     <string name="audio_prefs_category">Audio</string>
     <string name="lockscreen_cover_title">Media cover on Lockscreen</string>
     <string name="lockscreen_cover_summary">When available, set the current media cover art as lockscreen wallpaper</string>
+    <string name="playlist_animate_scroll_title">Animate current playlist auto-scrolling</string>
+    <string name="playlist_animate_scroll_summary">Animate scrolling on media transition</string>
     <string name="audio_title_alignment">Audio title alignment</string>
     <string name="audio_title_alignment_default">Default</string>
     <string name="audio_title_alignment_left">Left</string>
diff --git a/vlc-android/res/xml/preferences_audio.xml b/vlc-android/res/xml/preferences_audio.xml
index 3ed1aba..1708089 100644
--- a/vlc-android/res/xml/preferences_audio.xml
+++ b/vlc-android/res/xml/preferences_audio.xml
@@ -9,6 +9,11 @@
         android:key="lockscreen_cover"
         android:summary="@string/lockscreen_cover_summary"
         android:title="@string/lockscreen_cover_title" />
+    <CheckBoxPreference
+        android:defaultValue="true"
+        android:key="animate_playlist_scroll"
+        android:summary="@string/playlist_animate_scroll_summary"
+        android:title="@string/playlist_animate_scroll_title" />
     <ListPreference
         android:defaultValue="0"
         android:entries="@array/audio_title_alignment_list"



More information about the Android mailing list