<div dir="ltr"><div><div><div><div>We may reword "Blurred cover for audio backgrounds" to something like "Blurred cover in audio player background".<br></div>It's not clear where it applies otherwise.<br><br></div>I'd have put the prefs check upper in the code, in the first line of updateBackground():<br>if (AndroidUtil.isJellyBeanMR1OrLater && settings.getBoolean("blurred_cover_background", true)) {<br>...<br>}<br><br></div>To manage it as we do for pre JellyBean devices.<br><br></div>then, this preferences has to be hidden for devices pre-jellybean, and also on TV.<br></div><br><div class="gmail_quote"><div dir="ltr">Le mer. 25 avr. 2018 à 18:28, Hamza Parnica <<a href="mailto:hparnica@gmail.com">hparnica@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
vlc-android/res/values/strings.xml | 2 ++<br>
vlc-android/res/xml/preferences_ui.xml | 6 ++++++<br>
vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt | 2 +-<br>
3 files changed, 9 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/vlc-android/res/values/strings.xml b/vlc-android/res/values/strings.xml<br>
index 2e795e6f8..e63519e17 100644<br>
--- a/vlc-android/res/values/strings.xml<br>
+++ b/vlc-android/res/values/strings.xml<br>
@@ -431,6 +431,8 @@<br>
<string name="network_caching_summary">The amount of time to buffer network media (in ms). Does not work with hardware decoding. Leave blank to reset.</string><br>
<string name="resume_playback_title">Resume playback after a call</string><br>
<string name="resume_playback_summary">Stay in pause otherwise</string><br>
+ <string name="blurred_cover_background_title">Blurred cover background</string><br>
+ <string name="blurred_cover_background_summary">Blurred cover for audio backgrounds</string><br>
<string name="network_caching_popup">This value must be between 0 and 6000 ms</string><br>
<string name="quit">Quit and restart application</string><br>
<br>
diff --git a/vlc-android/res/xml/preferences_ui.xml b/vlc-android/res/xml/preferences_ui.xml<br>
index 266688c93..16b4611f1 100644<br>
--- a/vlc-android/res/xml/preferences_ui.xml<br>
+++ b/vlc-android/res/xml/preferences_ui.xml<br>
@@ -41,6 +41,12 @@<br>
android:summary="@string/resume_playback_summary"<br>
android:title="@string/resume_playback_title" /><br>
<br>
+ <CheckBoxPreference<br>
+ android:defaultValue="true"<br>
+ android:key="blurred_cover_background"<br>
+ android:summary="@string/blurred_cover_background_summary"<br>
+ android:title="@string/blurred_cover_background_title" /><br>
+<br>
<PreferenceCategory<br>
android:title="@string/interface_secondary_display_category_title"<br>
android:key="secondary_display_category"><br>
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt<br>
index b39b6c2b0..6c4d4ff6a 100644<br>
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt<br>
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt<br>
@@ -274,7 +274,7 @@ class AudioPlayer : Fragment(), PlaylistAdapter.IPlayer, TextWatcher, PlaybackSe<br>
val mw = service?.currentMediaWrapper<br>
if (mw === null || TextUtils.equals(currentCoverArt, mw.artworkMrl)) return@launch<br>
currentCoverArt = mw.artworkMrl<br>
- if (TextUtils.isEmpty(mw.artworkMrl)) {<br>
+ if (TextUtils.isEmpty(mw.artworkMrl) || !settings.getBoolean("blurred_cover_background", true)) {<br>
setDefaultBackground()<br>
} else {<br>
val blurredCover = async { UiTools.blurBitmap(AudioUtil.readCoverBitmap(Uri.decode(mw.artworkMrl), binding.contentLayout.width)) }.await()<br>
-- <br>
2.17.0<br>
<br>
_______________________________________________<br>
Android mailing list<br>
<a href="mailto:Android@videolan.org" target="_blank">Android@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/android" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/android</a><br>
</blockquote></div>