[Android] Migrate helpers to kotlin

Nicolas Pomepuy git at videolan.org
Fri Apr 26 12:45:54 CEST 2019


vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Thu Apr 18 13:36:58 2019 +0200| [31e490fb15162867ac1317e166f2c90c483ee82b] | committer: Geoffrey Métais

Migrate helpers to kotlin

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

 .../src/org/videolan/vlc/DebugLogService.java      |   5 +-
 .../src/org/videolan/vlc/StartActivity.java        |   7 +-
 .../src/org/videolan/vlc/VLCApplication.java       |  26 +-
 .../src/org/videolan/vlc/gui/AboutFragment.kt      |   8 +-
 .../vlc/gui/AudioPlayerContainerActivity.kt        |  28 +-
 .../src/org/videolan/vlc/gui/PlaylistActivity.kt   |   4 +-
 .../src/org/videolan/vlc/gui/audio/AudioPlayer.kt  |  16 +-
 .../org/videolan/vlc/gui/audio/BaseAudioBrowser.kt |   4 +-
 .../vlc/gui/browser/BaseBrowserFragment.kt         |   4 +-
 .../vlc/gui/browser/MediaBrowserFragment.kt        |   4 +-
 .../org/videolan/vlc/gui/dialogs/ContextSheet.kt   |   4 +-
 .../videolan/vlc/gui/dialogs/PickTimeFragment.kt   |   4 +-
 .../vlc/gui/dialogs/PlaybackSpeedDialog.kt         |   3 +-
 .../videolan/vlc/gui/dialogs/SavePlaylistDialog.kt |   4 +-
 .../vlc/gui/dialogs/SelectChapterDialog.kt         |   4 +-
 .../dialogs/SubtitleDownloaderDialogFragment.kt    |  32 +-
 .../org/videolan/vlc/gui/helpers/AudioUtil.java    | 463 --------------
 .../src/org/videolan/vlc/gui/helpers/AudioUtil.kt  | 412 +++++++++++++
 .../org/videolan/vlc/gui/helpers/BitmapCache.java  | 101 ---
 .../org/videolan/vlc/gui/helpers/BitmapCache.kt    |  94 +++
 .../org/videolan/vlc/gui/helpers/BitmapUtil.java   | 190 ------
 .../src/org/videolan/vlc/gui/helpers/BitmapUtil.kt | 105 ++++
 .../vlc/gui/helpers/BottomSheetBehavior.java       | 111 ----
 .../vlc/gui/helpers/BottomSheetBehavior.kt         | 114 ++++
 .../gui/helpers/FloatingActionButtonBehavior.java  |  91 ---
 .../gui/helpers/FloatingActionButtonBehavior.kt    |  84 +++
 .../org/videolan/vlc/gui/helpers/ImageLoader.kt    |   3 +-
 .../videolan/vlc/gui/helpers/MediaComparators.java | 113 ----
 .../videolan/vlc/gui/helpers/MediaComparators.kt   |  37 ++
 .../vlc/gui/helpers/MedialibraryUtils.java         |  40 --
 .../videolan/vlc/gui/helpers/MedialibraryUtils.kt  |  32 +
 .../vlc/gui/helpers/NotificationHelper.java        | 176 ------
 .../videolan/vlc/gui/helpers/NotificationHelper.kt | 178 ++++++
 .../videolan/vlc/gui/helpers/OnRepeatListener.java | 107 ----
 .../videolan/vlc/gui/helpers/OnRepeatListener.kt   |  92 +++
 .../vlc/gui/helpers/SelectorViewHolder.java        |  67 --
 .../videolan/vlc/gui/helpers/SelectorViewHolder.kt |  57 ++
 .../helpers/SwipeDragItemTouchHelperCallback.java  |  90 ---
 .../helpers/SwipeDragItemTouchHelperCallback.kt    |  72 +++
 .../vlc/gui/helpers/ThreeStatesCheckbox.java       |  98 ---
 .../vlc/gui/helpers/ThreeStatesCheckbox.kt         |  79 +++
 .../src/org/videolan/vlc/gui/helpers/UiTools.java  | 685 ---------------------
 .../src/org/videolan/vlc/gui/helpers/UiTools.kt    | 587 ++++++++++++++++++
 .../videolan/vlc/gui/preferences/PreferencesUi.kt  |   4 +-
 vlc-android/src/org/videolan/vlc/gui/tv/TvUtil.kt  |   4 +-
 .../videolan/vlc/gui/video/VideoGridFragment.kt    |   2 +-
 .../videolan/vlc/gui/video/VideoPlayerActivity.kt  |   4 +-
 .../videolan/vlc/media/MediaSessionBrowser.java    |  14 +-
 .../src/org/videolan/vlc/util/HttpImageLoader.kt   |   5 +-
 .../org/videolan/vlc/util/ThumbnailsProvider.kt    |  18 +-
 .../videolan/vlc/widget/VLCAppWidgetProvider.java  |   2 +-
 51 files changed, 2052 insertions(+), 2436 deletions(-)

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


More information about the Android mailing list