[Android] Fix AudioAlbumsSongsFragment sort issue
Nicolas Pomepuy
git at videolan.org
Thu Oct 10 16:30:51 CEST 2019
vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Wed Oct 9 08:35:25 2019 +0200| [6a22b859c72923ac7b114a170ce03463da72dacc] | committer: Geoffrey Métais
Fix AudioAlbumsSongsFragment sort issue
Fixes #1059
> https://code.videolan.org/videolan/vlc-android/commit/6a22b859c72923ac7b114a170ce03463da72dacc
---
.../src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.kt | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.kt b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.kt
index 9957b4583..d602f2b09 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.kt
@@ -20,7 +20,6 @@
package org.videolan.vlc.gui.audio
-import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.os.Handler
@@ -170,6 +169,10 @@ class AudioAlbumsSongsFragment : BaseAudioBrowser<AlbumSongsViewModel>(), SwipeR
}
}
+ override fun sortBy(sort: Int) {
+ viewModel.providers[currentTab].sort(sort)
+ }
+
override fun getCurrentAdapter() = adapters[currentTab]
override fun onRefresh() {
More information about the Android
mailing list