[Android] Use lifecycleScope whenever possible

Geoffrey Métais git at videolan.org
Tue Nov 26 15:38:29 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Nov 21 18:44:14 2019 +0100| [ce28f41409ed19e46cc18eff4592728d2963cf55] | committer: Geoffrey Métais

Use lifecycleScope whenever possible

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

 .../java/org/videolan/tools/KotlinExtensions.kt    |  3 --
 .../src/org/videolan/vlc/MediaParsingService.kt    | 18 +++++------
 .../src/org/videolan/vlc/PlaybackService.kt        | 10 +++---
 .../org/videolan/vlc/PreviewVideoInputService.kt   |  8 +++--
 .../src/org/videolan/vlc/RecommendationsService.kt | 13 ++++----
 vlc-android/src/org/videolan/vlc/StartActivity.kt  | 10 ++++--
 .../src/org/videolan/vlc/StoragesMonitor.kt        |  6 ++--
 vlc-android/src/org/videolan/vlc/VLCApplication.kt | 10 ++----
 .../vlc/gui/AudioPlayerContainerActivity.kt        | 14 ++++-----
 .../src/org/videolan/vlc/gui/BaseActivity.kt       | 15 +++------
 .../src/org/videolan/vlc/gui/InfoActivity.kt       | 36 +++++++++++-----------
 .../src/org/videolan/vlc/gui/PlaylistActivity.kt   | 31 +++++++++----------
 .../src/org/videolan/vlc/gui/SearchActivity.kt     |  7 ++---
 .../src/org/videolan/vlc/gui/SendCrashActivity.kt  |  7 ++---
 .../src/org/videolan/vlc/gui/audio/AudioPlayer.kt  | 16 ++++++----
 .../videolan/vlc/gui/audio/AudioPlayerAnimator.kt  |  3 +-
 .../videolan/vlc/gui/audio/EqualizerFragment.kt    |  7 +++--
 .../org/videolan/vlc/gui/dialogs/ContextSheet.kt   |  4 +--
 .../org/videolan/vlc/gui/dialogs/DeviceDialog.kt   |  9 +++---
 .../videolan/vlc/gui/dialogs/SavePlaylistDialog.kt | 12 ++++----
 .../gui/dialogs/VLCBottomSheetDialogFragment.kt    | 12 ++------
 .../org/videolan/vlc/gui/helpers/ImageLoader.kt    |  9 +++---
 .../src/org/videolan/vlc/gui/helpers/Navigator.kt  |  4 +--
 .../vlc/gui/onboarding/OnboardingActivity.kt       | 16 +++++-----
 .../vlc/gui/preferences/PreferencesAdvanced.kt     |  9 +++---
 .../src/org/videolan/vlc/gui/tv/MainTvFragment.kt  | 27 ++++++++--------
 .../org/videolan/vlc/gui/tv/NowPlayingDelegate.kt  |  3 +-
 .../vlc/gui/tv/audioplayer/AudioPlayerActivity.kt  | 11 ++++---
 .../vlc/gui/tv/browser/BaseBrowserTvFragment.kt    | 15 ++++-----
 .../videolan/vlc/gui/tv/browser/BaseTvActivity.kt  | 14 ++++-----
 .../vlc/gui/tv/browser/CategoriesFragment.kt       | 17 +++-------
 .../vlc/gui/tv/browser/FileBrowserTvFragment.kt    |  5 +--
 .../vlc/gui/tv/browser/MediaBrowserTvFragment.kt   |  4 +--
 .../vlc/gui/tv/details/MediaListActivity.kt        | 15 ++++-----
 .../videolan/vlc/gui/video/VideoGridFragment.kt    |  4 +--
 .../org/videolan/vlc/gui/video/VideoListAdapter.kt |  9 +++---
 .../videolan/vlc/gui/video/VideoPlayerActivity.kt  | 21 ++++++-------
 .../src/org/videolan/vlc/gui/view/FastScroller.kt  |  8 ++---
 .../src/org/videolan/vlc/media/MediaUtils.kt       | 19 ++++++------
 .../src/org/videolan/vlc/util/Kextensions.kt       |  7 +++--
 .../org/videolan/vlc/viewmodels/tv/MainTvModel.kt  | 20 ++++++------
 41 files changed, 228 insertions(+), 260 deletions(-)

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


More information about the Android mailing list