[Android] Providers for Medialibrary viewmodels
Geoffrey Métais
git at videolan.org
Thu May 9 13:26:49 CEST 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue May 7 19:42:16 2019 +0200| [85fc3aae05278ff53a0b05a3903c523ca4cfab09] | committer: Geoffrey Métais
Providers for Medialibrary viewmodels
Refactoring to extract logic code from viewmodels. The provider layer
now handles Medialibrary commands
> https://code.videolan.org/videolan/vlc-android/commit/85fc3aae05278ff53a0b05a3903c523ca4cfab09
---
.../vlc/gui/audio/AudioAlbumsSongsFragment.kt | 4 +-
.../videolan/vlc/gui/audio/AudioBrowserFragment.kt | 4 +-
.../org/videolan/vlc/gui/audio/BaseAudioBrowser.kt | 3 +-
.../videolan/vlc/gui/folders/FoldersFragment.kt | 2 +-
vlc-android/src/org/videolan/vlc/gui/tv/TvUtil.kt | 10 +-
.../vlc/gui/tv/browser/AudioBrowserTvFragment.kt | 2 +-
.../videolan/vlc/gui/video/VideoGridFragment.kt | 6 +-
.../src/org/videolan/vlc/media/MediaUtils.kt | 32 ++---
.../vlc/providers/medialibrary/AlbumsProvider.kt | 66 +++++++++
.../vlc/providers/medialibrary/ArtistsProvider.kt | 42 ++++++
.../vlc/providers/medialibrary/FoldersProvider.kt | 37 +++++
.../vlc/providers/medialibrary/GenresProvider.kt | 41 ++++++
.../providers/medialibrary/MedialibraryProvider.kt | 154 ++++++++++++++++++++
.../providers/medialibrary/PlaylistsProvider.kt | 41 ++++++
.../vlc/providers/medialibrary/TracksProvider.kt | 68 +++++++++
.../vlc/providers/medialibrary/VideosProvider.kt | 61 ++++++++
.../videolan/vlc/viewmodels/paged/MLPagedModel.kt | 158 +++++++--------------
.../vlc/viewmodels/paged/PagedAlbumsModel.kt | 56 ++++----
.../vlc/viewmodels/paged/PagedArtistsModel.kt | 48 ++++---
.../vlc/viewmodels/paged/PagedFoldersModel.kt | 34 +++--
.../vlc/viewmodels/paged/PagedGenresModel.kt | 35 +++--
.../vlc/viewmodels/paged/PagedPlaylistsModel.kt | 34 +++--
.../vlc/viewmodels/paged/PagedTracksModel.kt | 58 +++-----
.../vlc/viewmodels/paged/PagedVideosModel.kt | 74 +++++-----
24 files changed, 781 insertions(+), 289 deletions(-)
Diff: https://code.videolan.org/videolan/vlc-android/commit/85fc3aae05278ff53a0b05a3903c523ca4cfab09
More information about the Android
mailing list