[Android] Always get Medialibrary from service locator

Geoffrey Métais git at videolan.org
Tue Jul 2 15:00:47 CEST 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jul  2 14:53:18 2019 +0200| [a057b510f445c991ecfe8e0187c36e20b0d16227] | committer: Geoffrey Métais

Always get Medialibrary from service locator

This will greatly improve app testability

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

 vlc-android/src/org/videolan/vlc/ExternalMonitor.kt                  | 5 +++--
 vlc-android/src/org/videolan/vlc/PlaybackService.kt                  | 2 +-
 vlc-android/src/org/videolan/vlc/RecommendationsService.kt           | 3 ++-
 vlc-android/src/org/videolan/vlc/VLCApplication.kt                   | 4 ----
 vlc-android/src/org/videolan/vlc/gui/InfoActivity.kt                 | 3 ++-
 vlc-android/src/org/videolan/vlc/gui/MainActivity.kt                 | 2 +-
 vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt             | 3 ++-
 vlc-android/src/org/videolan/vlc/gui/SearchActivity.kt               | 2 +-
 vlc-android/src/org/videolan/vlc/gui/SecondaryActivity.kt            | 3 ++-
 vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.kt | 2 +-
 .../src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.kt        | 5 +++--
 .../src/org/videolan/vlc/gui/browser/StorageBrowserFragment.kt       | 5 +++--
 vlc-android/src/org/videolan/vlc/gui/dialogs/SavePlaylistDialog.kt   | 2 +-
 vlc-android/src/org/videolan/vlc/gui/helpers/ImageLoader.kt          | 3 ++-
 vlc-android/src/org/videolan/vlc/gui/helpers/MedialibraryUtils.kt    | 3 ++-
 .../src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.kt      | 4 ++--
 .../src/org/videolan/vlc/gui/preferences/PreferencesFragment.kt      | 3 ++-
 vlc-android/src/org/videolan/vlc/gui/tv/browser/BaseTvActivity.kt    | 3 ++-
 .../src/org/videolan/vlc/gui/tv/preferences/PreferencesAdvanced.kt   | 3 ++-
 .../src/org/videolan/vlc/gui/tv/preferences/PreferencesFragment.kt   | 3 ++-
 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt    | 2 +-
 vlc-android/src/org/videolan/vlc/util/Kextensions.kt                 | 4 ++--
 22 files changed, 39 insertions(+), 30 deletions(-)

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


More information about the Android mailing list