[Android] Remove VLCCommonApplication and use a singleton instead

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


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Jan  8 15:32:24 2020 +0100| [1850aeaef11a950a36664ad0382a709bf2f0fdea] | committer: Nicolas Pomepuy

Remove VLCCommonApplication and use a singleton instead

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

 .../java/org/videolan/vlc/mediadb/Migrations.kt    |  4 +-
 .../java/org/videolan/resources/AndroidDevices.kt  |  2 +-
 .../java/org/videolan/resources/AppInstance.kt     | 31 ++++++++++
 .../org/videolan/resources/VLCCommonApplication.kt | 70 ----------------------
 .../src/org/videolan/vlc/ExternalMonitor.kt        |  6 +-
 .../src/org/videolan/vlc/PlaybackService.kt        |  2 +-
 .../src/org/videolan/vlc/RendererDelegate.kt       |  6 +-
 vlc-android/src/org/videolan/vlc/VLCApplication.kt | 22 +++----
 .../src/org/videolan/vlc/VLCCrashHandler.kt        |  6 +-
 .../org/videolan/vlc/api/OpenSubtitleService.kt    |  4 +-
 .../src/org/videolan/vlc/gui/SendCrashActivity.kt  |  6 +-
 .../videolan/vlc/gui/audio/AudioBrowserAdapter.kt  |  4 +-
 .../src/org/videolan/vlc/gui/audio/AudioPlayer.kt  |  2 +-
 .../videolan/vlc/gui/audio/EqualizerFragment.kt    | 10 ++--
 .../org/videolan/vlc/gui/audio/PlaylistAdapter.kt  |  6 +-
 .../src/org/videolan/vlc/gui/helpers/AudioUtil.kt  |  6 +-
 .../src/org/videolan/vlc/gui/helpers/BitmapUtil.kt |  4 +-
 .../org/videolan/vlc/gui/helpers/ImageLoader.kt    |  4 +-
 .../videolan/vlc/gui/helpers/MedialibraryUtils.kt  |  2 +-
 .../src/org/videolan/vlc/gui/helpers/UiTools.kt    |  4 +-
 .../videolan/vlc/gui/video/VideoPlayerActivity.kt  |  2 +-
 .../videolan/vlc/media/MediaSessionBrowser.java    |  4 +-
 .../src/org/videolan/vlc/media/MediaUtils.kt       |  8 +--
 .../src/org/videolan/vlc/media/PlaylistManager.kt  |  2 +-
 vlc-android/src/org/videolan/vlc/util/FileUtils.kt | 12 ++--
 .../src/org/videolan/vlc/util/FilterDelegate.kt    | 10 ++--
 .../src/org/videolan/vlc/util/Permissions.kt       |  6 +-
 .../org/videolan/vlc/util/ThumbnailsProvider.kt    |  8 +--
 vlc-android/src/org/videolan/vlc/util/Util.kt      |  4 +-
 .../org/videolan/vlc/util/VLCDownloadManager.kt    | 10 ++--
 .../src/org/videolan/vlc/util/VLCInstance.kt       |  4 +-
 .../src/org/videolan/vlc/util/VLCOptions.kt        |  5 +-
 32 files changed, 119 insertions(+), 157 deletions(-)

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


More information about the Android mailing list