[Android] Fix "show all artists" setting initial state

Nicolas Pomepuy git at videolan.org
Fri Dec 4 11:33:54 CET 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Dec  3 14:48:16 2020 +0100| [f79ffa5bd542fbb1f8de7bdc165ce055b94e1d3a] | committer: Jean-Baptiste Kempf

Fix "show all artists" setting initial state

Fixes #1566

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

 .../vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.kt  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.kt
index 5ab04c010..863675bd2 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.kt
@@ -254,7 +254,7 @@ class AudioBrowserFragment : BaseAudioBrowser<AudioBrowserViewModel>() {
                 true
             }
             R.id.artists_show_all_title -> {
-                item.isChecked = !Settings.getInstance(requireActivity()).getBoolean(KEY_ARTISTS_SHOW_ALL, true)
+                item.isChecked = !Settings.getInstance(requireActivity()).getBoolean(KEY_ARTISTS_SHOW_ALL, false)
                 Settings.getInstance(requireActivity()).putSingle(KEY_ARTISTS_SHOW_ALL, item.isChecked)
                 viewModel.artistsProvider.showAll = item.isChecked
                 viewModel.refresh()



More information about the Android mailing list