[Android] Revert "Put the user defined equalizer presets on top"

Nicolas Pomepuy git at videolan.org
Wed Jul 21 04:52:13 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Jul 20 13:54:41 2021 +0200| [9bf4a0e45d62c8702caede07e66209999c3c149a] | committer: Nicolas Pomepuy

Revert "Put the user defined equalizer presets on top"

This reverts commit 2a52febb
Fixes #2104

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

 .../vlc-android/src/org/videolan/vlc/gui/audio/EqualizerFragment.kt   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/audio/EqualizerFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/audio/EqualizerFragment.kt
index 6492aab54..8dc1f0dc6 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/audio/EqualizerFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/audio/EqualizerFragment.kt
@@ -152,11 +152,11 @@ class EqualizerFragment : VLCBottomSheetDialogFragment() {
         presetCount = allSets.size
         for ((key) in Settings.getInstance(requireActivity()).all) {
             if (key.startsWith("custom_equalizer_")) {
-                allSets.add(0, key.replace("custom_equalizer_", "").replace("_", " "))
+                allSets.add(key.replace("custom_equalizer_", "").replace("_", " "))
                 customCount++
             }
         }
-        allSets.add(customCount, newPresetName)
+        allSets.add(newPresetName)
 
         equalizer = VLCOptions.getEqualizerSetFromSettings(requireActivity(), true)!!
 



More information about the Android mailing list