[Android] Allow getting Application context in the resources module

Nicolas Pomepuy git at videolan.org
Tue Jan 14 11:00:12 CET 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Jan  7 12:01:10 2020 +0100| [8dc79b4fccf3a71220d5bde4d9003bf7e6b9a2ea] | committer: Nicolas Pomepuy

Allow getting Application context in the resources module

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

 resources/build.gradle                             |  1 +
 .../org/videolan/resources/VLCCommonApplication.kt | 70 ++++++++++++++++++++++
 .../src/org/videolan/vlc/ExternalMonitor.kt        |  5 +-
 .../src/org/videolan/vlc/PlaybackService.kt        |  2 +-
 .../src/org/videolan/vlc/RendererDelegate.kt       |  5 +-
 vlc-android/src/org/videolan/vlc/VLCApplication.kt | 45 ++++----------
 .../src/org/videolan/vlc/VLCCrashHandler.kt        |  5 +-
 .../org/videolan/vlc/api/OpenSubtitleService.kt    |  5 +-
 .../src/org/videolan/vlc/database/Migrations.kt    |  6 +-
 .../src/org/videolan/vlc/gui/SendCrashActivity.kt  |  7 ++-
 .../videolan/vlc/gui/audio/AudioBrowserAdapter.kt  |  8 +--
 .../src/org/videolan/vlc/gui/audio/AudioPlayer.kt  |  2 +-
 .../videolan/vlc/gui/audio/EqualizerFragment.kt    | 11 ++--
 .../org/videolan/vlc/gui/audio/PlaylistAdapter.kt  |  5 +-
 .../src/org/videolan/vlc/gui/helpers/AudioUtil.kt  |  5 +-
 .../src/org/videolan/vlc/gui/helpers/BitmapUtil.kt |  4 +-
 .../org/videolan/vlc/gui/helpers/ImageLoader.kt    |  9 ++-
 .../videolan/vlc/gui/helpers/MedialibraryUtils.kt  |  7 ++-
 .../src/org/videolan/vlc/gui/helpers/UiTools.kt    |  3 +-
 .../videolan/vlc/gui/video/VideoPlayerActivity.kt  |  2 +-
 .../videolan/vlc/media/MediaSessionBrowser.java    | 14 ++---
 .../src/org/videolan/vlc/media/MediaUtils.kt       |  8 +--
 .../src/org/videolan/vlc/media/PlaylistManager.kt  |  3 +-
 .../src/org/videolan/vlc/util/AndroidDevices.kt    |  6 +-
 vlc-android/src/org/videolan/vlc/util/FileUtils.kt | 17 +++---
 .../src/org/videolan/vlc/util/FilterDelegate.kt    | 10 ++--
 .../src/org/videolan/vlc/util/Permissions.kt       |  7 +--
 .../org/videolan/vlc/util/ThumbnailsProvider.kt    |  8 +--
 vlc-android/src/org/videolan/vlc/util/Util.kt      |  3 +-
 .../org/videolan/vlc/util/VLCDownloadManager.kt    | 10 ++--
 .../src/org/videolan/vlc/util/VLCInstance.kt       |  4 +-
 .../src/org/videolan/vlc/util/VLCOptions.kt        |  3 +-
 32 files changed, 179 insertions(+), 121 deletions(-)

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


More information about the Android mailing list