[Android] AlbumSongsViewModel

Geoffrey Métais git at videolan.org
Tue May 14 13:33:01 CEST 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri May 10 13:31:09 2019 +0200| [9e11f0be1e073727a891b54805656663a895cff0] | committer: Geoffrey Métais

AlbumSongsViewModel

Refactor AudioAlbumsSongsFragment with a dedicated ViewModel, replacing
albums + tracks models

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

 .../src/org/videolan/vlc/gui/PlaylistFragment.kt   |  11 ++-
 .../vlc/gui/audio/AudioAlbumsSongsFragment.kt      | 103 ++++++++-------------
 .../videolan/vlc/gui/audio/AudioBrowserFragment.kt |  31 +++----
 .../org/videolan/vlc/gui/audio/BaseAudioBrowser.kt |  23 +++--
 .../vlc/gui/browser/BaseBrowserFragment.kt         |   3 +-
 .../vlc/gui/browser/FileBrowserFragment.kt         |   3 +-
 .../vlc/gui/browser/NetworkBrowserFragment.kt      |   2 +-
 .../videolan/vlc/gui/network/MRLPanelFragment.kt   |   6 +-
 .../vlc/providers/medialibrary/AlbumsProvider.kt   |   4 +-
 .../vlc/providers/medialibrary/ArtistsProvider.kt  |   4 +-
 .../vlc/providers/medialibrary/FoldersProvider.kt  |   4 +-
 .../vlc/providers/medialibrary/GenresProvider.kt   |   4 +-
 .../providers/medialibrary/MedialibraryProvider.kt |   4 +-
 .../providers/medialibrary/PlaylistsProvider.kt    |   4 +-
 .../vlc/providers/medialibrary/TracksProvider.kt   |   4 +-
 .../vlc/providers/medialibrary/VideosProvider.kt   |   4 +-
 .../org/videolan/vlc/viewmodels/SortableModel.kt   |   2 +-
 .../vlc/viewmodels/mobile/AlbumSongsViewModel.kt   |  59 ++++++++++++
 .../vlc/viewmodels/mobile/BaseAudioViewModel.kt    |  43 +++++++++
 19 files changed, 201 insertions(+), 117 deletions(-)

Diff:   https://code.videolan.org/videolan/vlc-android/commit/9e11f0be1e073727a891b54805656663a895cff0


More information about the Android mailing list