[Android] ML: refactor method to get history

Duncan McNamara git at videolan.org
Wed Jan 24 13:35:27 UTC 2024


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Wed Dec 20 15:41:22 2023 +0100| [fd03d6ad1a83ad482c1a6f97f44e9490d1cf3b5d] | committer: Duncan McNamara

ML: refactor method to get history

lastMediaPlayed() and lastPlayedStreams are merged into history(int
type) that takes a HISTORY_TYPE_GLOBAL/LOCAL/NETWORK parameter to
indicate what to query

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

 .../videolan/television/viewmodel/MainTvModel.kt   |  4 ++--
 .../src/org/videolan/vlc/ArtworkProvider.kt        |  2 +-
 .../src/org/videolan/vlc/MediaSessionCallback.kt   |  4 ++--
 .../org/videolan/vlc/media/MediaSessionBrowser.kt  |  8 ++++----
 .../org/videolan/vlc/viewmodels/HistoryModel.kt    |  4 +++-
 .../org/videolan/vlc/viewmodels/StreamsModel.kt    |  3 ++-
 .../videolan/vlc/webserver/RemoteAccessRouting.kt  |  2 +-
 medialibrary/jni/AndroidMediaLibrary.cpp           | 10 ++--------
 medialibrary/jni/AndroidMediaLibrary.h             |  3 +--
 medialibrary/jni/medialibrary.cpp                  | 23 +++-------------------
 .../videolan/medialibrary/MedialibraryImpl.java    | 12 +++--------
 .../medialibrary/interfaces/Medialibrary.java      |  7 +++++--
 .../medialibrary/stubs/StubMedialibrary.java       | 12 +----------
 13 files changed, 30 insertions(+), 64 deletions(-)

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


More information about the Android mailing list