[Android] Replace DirectoryRepository with CustomDirectories

Habib Kazemi git at videolan.org
Thu Aug 30 10:10:05 CEST 2018


vlc-android | branch: master | Habib Kazemi <kazemihabib1996 at gmail.com> | Tue Aug 21 19:06:34 2018 +0430| [4aa75b7b860c8d48e7a43be4b3aef09a5549ee00] | committer: Geoffrey Métais

Replace DirectoryRepository with CustomDirectories

Some functions moved from AndroidDevices to DirectoryRepository
FilePickerFragment and StorageBrowserAdapter and StorageBrowserFragment
converted to kotlin to support DirectoryRepository suspend functions.

Signed-off-by: Geoffrey Métais <geoffrey.metais at gmail.com>

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

 .../src/org/videolan/vlc/MediaParsingService.kt    |   3 +-
 .../vlc/gui/browser/FilePickerFragment.java        | 127 ----------
 .../videolan/vlc/gui/browser/FilePickerFragment.kt | 122 ++++++++++
 .../vlc/gui/browser/StorageBrowserAdapter.java     | 102 --------
 .../vlc/gui/browser/StorageBrowserAdapter.kt       | 101 ++++++++
 .../vlc/gui/browser/StorageBrowserFragment.java    | 261 ---------------------
 .../vlc/gui/browser/StorageBrowserFragment.kt      | 233 ++++++++++++++++++
 .../src/org/videolan/vlc/gui/tv/MainTvFragment.kt  |   9 +-
 .../vlc/gui/video/VideoPlayerActivity.java         |   7 +-
 .../org/videolan/vlc/providers/BrowserProvider.kt  |   1 +
 .../videolan/vlc/providers/FileBrowserProvider.kt  |  60 ++---
 .../org/videolan/vlc/providers/StorageProvider.kt  |  39 +--
 .../videolan/vlc/repository/CustomDirectories.java |  89 -------
 .../videolan/vlc/repository/DirectoryRepository.kt |  46 +++-
 .../src/org/videolan/vlc/util/AndroidDevices.java  |  34 ---
 15 files changed, 561 insertions(+), 673 deletions(-)

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


More information about the Android mailing list