[Android] Refactor Playlist ViewModel

Geoffrey Métais git at videolan.org
Thu Nov 15 14:28:39 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Nov 15 11:48:11 2018 +0100| [a8723e58e418de5464a23329a80c649a588822ab] | committer: Geoffrey Métais

Refactor Playlist ViewModel

ViewModel now persists during view lifecycle

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

 .../src/org/videolan/vlc/gui/audio/AudioPlayer.kt  | 172 ++++++++------------
 .../gui/tv/audioplayer/AudioPlayerActivity.java    | 177 ++++++++++-----------
 .../vlc/gui/tv/audioplayer/PlaylistAdapter.java    |  22 +--
 .../vlc/gui/tv/browser/BaseTvActivity.java         |   9 +-
 .../vlc/gui/video/VideoPlayerActivity.java         |  28 ++--
 .../videolan/vlc/gui/view/AudioMediaSwitcher.java  |   1 +
 .../org/videolan/vlc/viewmodels/PlaylistModel.kt   | 161 +++++++++++++++----
 7 files changed, 317 insertions(+), 253 deletions(-)

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


More information about the Android mailing list