[Android] AudioBrowserViewModel

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


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri May 10 15:12:56 2019 +0200| [f866249d8d0c215f2056ee80638dbb76f14173b3] | committer: Geoffrey Métais

AudioBrowserViewModel

Unified ViewModel for AudioBrowserFragment, leveraging providers
refactoring

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

 .../src/org/videolan/vlc/gui/MainActivity.kt       |   2 +-
 .../vlc/gui/audio/AudioAlbumsSongsFragment.kt      |  20 ++-
 .../videolan/vlc/gui/audio/AudioBrowserFragment.kt | 194 ++++++++++-----------
 .../vlc/gui/browser/MediaBrowserFragment.kt        |  19 +-
 .../vlc/providers/medialibrary/AlbumsProvider.kt   |  18 +-
 .../vlc/providers/medialibrary/ArtistsProvider.kt  |   6 +-
 .../vlc/providers/medialibrary/FoldersProvider.kt  |   4 +-
 .../vlc/providers/medialibrary/GenresProvider.kt   |   6 +-
 .../providers/medialibrary/MedialibraryProvider.kt |   6 +-
 .../providers/medialibrary/PlaylistsProvider.kt    |   6 +-
 .../vlc/providers/medialibrary/TracksProvider.kt   |  20 +--
 .../vlc/providers/medialibrary/VideosProvider.kt   |  10 +-
 .../src/org/videolan/vlc/util/ModelsHelper.kt      |  16 ++
 .../org/videolan/vlc/viewmodels/SortableModel.kt   |   4 +-
 .../vlc/viewmodels/mobile/AudioBrowserViewModel.kt |  75 ++++++++
 .../vlc/viewmodels/mobile/BaseAudioViewModel.kt    |  11 ++
 16 files changed, 263 insertions(+), 154 deletions(-)

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


More information about the Android mailing list