[Android] Use Core KTX functions

Isira Seneviratne git at videolan.org
Tue Jul 7 09:52:49 CEST 2020


vlc-android | branch: master | Isira Seneviratne <isirasen96 at gmail.com> | Tue Jul  7 09:52:48 2020 +0200| [8ddd9146449f4e20e64745d2149d33af2cfb9b04] | committer: Nicolas Pomepuy

Use Core KTX functions

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

 application/live-plot-graph/build.gradle           |  2 +-
 application/mediadb/build.gradle                   |  2 +
 .../java/org/videolan/vlc/mediadb/Converters.kt    |  3 +-
 application/moviepedia/build.gradle                |  2 +
 .../videolan/moviepedia/database/ConvertersTest.kt |  4 +-
 .../org/videolan/moviepedia/database/Converters.kt |  3 +-
 .../moviepedia/models/identify/IdentifyResult.kt   |  6 +--
 .../moviepedia/models/media/MediaResult.kt         |  4 +-
 .../moviepedia/provider/MediaScrapingProvider.kt   |  9 ++--
 application/resources/build.gradle                 |  3 ++
 .../java/org/videolan/resources/AndroidDevices.kt  | 11 ++--
 .../main/java/org/videolan/resources/VLCOptions.kt | 62 +++++++++++-----------
 .../videolan/television/ui/FileTvItemAdapter.kt    |  4 +-
 .../org/videolan/television/ui/LicenceActivity.kt  |  4 +-
 .../television/ui/MediaImageCardPresenter.kt       |  5 +-
 .../television/ui/MediaItemDetailsFragment.kt      | 10 ++--
 .../television/ui/MediaScrapingTvActivity.kt       |  4 +-
 .../television/ui/MediaScrapingTvItemAdapter.kt    |  2 +-
 .../videolan/television/ui/MediaTvItemAdapter.kt   |  2 +-
 .../television/ui/MetadataCardPresenter.kt         |  5 +-
 .../videolan/television/ui/PersonCardPresenter.kt  |  3 +-
 .../television/ui/browser/FileBrowserTvFragment.kt | 13 ++---
 .../ui/browser/MediaBrowserTvFragment.kt           |  9 +---
 .../ui/browser/MediaScrapingBrowserTvFragment.kt   |  7 +--
 .../television/ui/details/MediaListAdapter.kt      |  3 +-
 .../television/ui/dialogs/ConfirmationTvDialog.kt  |  6 +--
 .../ui/preferences/PreferencesAdvanced.kt          | 21 ++++----
 .../videolan/television/util/TVSearchProvider.kt   |  7 +--
 application/tools/build.gradle                     |  3 ++
 .../java/org/videolan/tools/KotlinExtensions.kt    |  8 +--
 .../main/java/org/videolan/tools/NetworkMonitor.kt |  3 +-
 .../src/main/java/org/videolan/tools/Settings.kt   | 16 +++---
 .../videolan/org/commontools/TvChannelUtils.kt     |  5 +-
 .../org/videolan/vlc/database/MigrationTest.kt     | 18 ++++---
 .../database/helpers/SqliteDatabaseTestHelper.kt   | 27 ++++------
 .../vlc/gui/browser/FileBrowserFragmentUITest.kt   | 17 +++---
 .../src/org/videolan/vlc/ExternalMonitor.kt        |  3 +-
 .../src/org/videolan/vlc/MediaParsingService.kt    |  6 ++-
 .../src/org/videolan/vlc/MediaSessionCallback.kt   |  3 +-
 .../src/org/videolan/vlc/PlaybackService.kt        | 14 +++--
 .../src/org/videolan/vlc/StartActivity.kt          |  3 +-
 .../vlc-android/src/org/videolan/vlc/TvReceiver.kt |  3 +-
 .../src/org/videolan/vlc/gui/AboutFragment.kt      |  4 +-
 .../vlc/gui/AudioPlayerContainerActivity.kt        |  4 +-
 .../src/org/videolan/vlc/gui/DebugLogActivity.kt   |  8 +--
 .../src/org/videolan/vlc/gui/InfoActivity.kt       | 10 ++--
 .../src/org/videolan/vlc/gui/SearchActivity.kt     |  5 +-
 .../src/org/videolan/vlc/gui/SecondaryActivity.kt  | 22 +++-----
 .../src/org/videolan/vlc/gui/SendCrashActivity.kt  |  8 +--
 .../videolan/vlc/gui/audio/AudioBrowserAdapter.kt  |  2 +-
 .../src/org/videolan/vlc/gui/audio/AudioPlayer.kt  |  8 +--
 .../vlc/gui/browser/BaseBrowserFragment.kt         | 10 ++--
 .../videolan/vlc/gui/browser/ExtensionAdapter.kt   |  4 +-
 .../vlc/gui/browser/FileBrowserFragment.kt         |  5 +-
 .../videolan/vlc/gui/browser/FilePickerFragment.kt |  4 +-
 .../vlc/gui/browser/NetworkBrowserFragment.kt      |  6 +--
 .../org/videolan/vlc/gui/browser/PathAdapter.kt    |  7 +--
 .../vlc/gui/browser/StorageBrowserFragment.kt      |  6 +--
 .../org/videolan/vlc/gui/dialogs/ContextSheet.kt   |  8 ++-
 .../vlc/gui/dialogs/NetworkServerDialog.kt         |  3 +-
 .../org/videolan/vlc/gui/dialogs/RenameDialog.kt   |  5 +-
 .../vlc/gui/dialogs/SubtitleDownloadFragment.kt    | 11 ++--
 .../dialogs/SubtitleDownloaderDialogFragment.kt    |  9 ++--
 .../vlc/gui/dialogs/SubtitleHistoryFragment.kt     |  7 +--
 .../src/org/videolan/vlc/gui/helpers/AudioUtil.kt  | 22 ++++----
 .../org/videolan/vlc/gui/helpers/ImageLoader.kt    |  5 +-
 .../videolan/vlc/gui/helpers/MedialibraryUtils.kt  |  9 ++--
 .../src/org/videolan/vlc/gui/helpers/Navigator.kt  | 13 ++---
 .../videolan/vlc/gui/helpers/NotificationHelper.kt |  5 +-
 .../vlc/gui/helpers/PlayerOptionsDelegate.kt       |  3 +-
 .../src/org/videolan/vlc/gui/helpers/UiTools.kt    | 34 ++++++------
 .../gui/helpers/hf/StoragePermissionsDelegate.kt   |  3 +-
 .../vlc/gui/helpers/hf/WriteExternalDelegate.kt    |  6 ++-
 .../videolan/vlc/gui/network/MRLPanelFragment.kt   |  8 +--
 .../vlc/gui/onboarding/OnboardingActivity.kt       | 20 +++----
 .../vlc/gui/preferences/PreferencesAdvanced.kt     | 19 +++----
 .../vlc/gui/preferences/PreferencesExtensions.kt   |  5 +-
 ...ultiSelectListPreferenceDialogFragmentCompat.kt | 12 ++---
 .../org/videolan/vlc/gui/video/MediaInfoAdapter.kt |  3 +-
 .../src/org/videolan/vlc/gui/video/PopupManager.kt |  4 +-
 .../org/videolan/vlc/gui/video/VideoListAdapter.kt |  5 +-
 .../videolan/vlc/gui/video/VideoPlayerActivity.kt  | 21 ++++----
 .../vlc/gui/video/VideoPlayerOverlayDelegate.kt    |  4 +-
 .../vlc/gui/video/benchmark/BenchActivity.kt       | 16 +++---
 .../gui/video/benchmark/StartActivityOnCrash.kt    |  5 +-
 .../videolan/vlc/gui/view/AudioMediaSwitcher.kt    |  7 ++-
 .../videolan/vlc/gui/view/AutoFitRecyclerView.kt   |  3 +-
 .../src/org/videolan/vlc/gui/view/PopupLayout.kt   |  3 +-
 .../org/videolan/vlc/media/MediaSessionBrowser.kt  | 18 +++----
 .../src/org/videolan/vlc/media/PlayerController.kt |  6 ++-
 .../src/org/videolan/vlc/media/PlaylistManager.kt  | 27 +++++-----
 .../videolan/vlc/providers/FileBrowserProvider.kt  | 12 ++---
 .../org/videolan/vlc/providers/NetworkProvider.kt  |  4 +-
 .../org/videolan/vlc/providers/StorageProvider.kt  |  3 +-
 .../providers/medialibrary/MedialibraryProvider.kt |  9 ++--
 .../src/org/videolan/vlc/util/FileUtils.kt         |  5 +-
 .../src/org/videolan/vlc/util/Kextensions.kt       |  4 +-
 .../src/org/videolan/vlc/util/Permissions.kt       | 11 ++--
 .../src/org/videolan/vlc/util/SettingsMigration.kt | 33 ++++++------
 .../src/org/videolan/vlc/util/TvChannels.kt        |  7 +--
 .../org/videolan/vlc/util/VLCAudioFocusHelper.kt   |  6 +--
 .../org/videolan/vlc/util/VLCDownloadManager.kt    | 12 ++---
 .../org/videolan/vlc/viewmodels/SortableModel.kt   |  9 ++--
 .../viewmodels/browser/BrowserFavoritesModel.kt    |  6 +--
 .../videolan/vlc/widget/VLCAppWidgetProvider.kt    |  3 +-
 .../test-common/org/videolan/vlc/util/TestUtil.kt  |  7 +--
 .../vlc/repository/ExternalSubRepositoryTest.kt    |  9 ++--
 .../videolan/vlc/viewmodels/HistoryModelTest.kt    |  6 +--
 .../videolan/vlc/viewmodels/StreamsModelTest.kt    |  6 +--
 .../videolan/vlc/viewmodels/SubtitlesModelTest.kt  |  8 +--
 .../vlc/viewmodels/browser/FileBrowserModelTest.kt |  6 +--
 .../vlc/viewmodels/browser/NetworkModelTest.kt     |  4 +-
 .../viewmodels/mobile/AudioBrowserViewModelTest.kt | 10 ++--
 build.gradle                                       |  2 +-
 libvlc/src/org/videolan/libvlc/MediaPlayer.java    |  2 +-
 .../org/videolan/libvlc/util/DisplayManager.java   |  3 +-
 116 files changed, 490 insertions(+), 484 deletions(-)

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


More information about the Android mailing list