[Android] Refactor the models and adapter to display files in TV list UI

Nicolas Pomepuy git at videolan.org
Tue May 21 14:41:02 CEST 2019


vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Fri May 17 08:52:31 2019 +0200| [3928be76d981eb8923c79371a456c8401765f47e] | committer: Geoffrey Métais

Refactor the models and adapter to display files in TV list UI

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

 vlc-android/res/layout/media_browser_tv_item.xml   |   2 +-
 vlc-android/res/layout/song_browser.xml            |   1 -
 .../org/videolan/vlc/gui/tv/FileTvItemAdapter.kt   | 197 +++++++++++
 .../src/org/videolan/vlc/gui/tv/MainTvFragment.kt  |   2 +-
 .../vlc/gui/tv/MediaBrowserAnimatorDelegate.kt     |  22 +-
 .../org/videolan/vlc/gui/tv/MediaTvItemAdapter.kt  | 259 ++++++++++++++
 .../src/org/videolan/vlc/gui/tv/TvItemAdapter.kt   | 245 +------------
 vlc-android/src/org/videolan/vlc/gui/tv/TvUtil.kt  |   4 +-
 .../vlc/gui/tv/browser/BaseBrowserTvFragment.kt    | 374 ++++++++++++++++++++
 .../vlc/gui/tv/browser/FileBrowserTvFragment.kt    | 143 ++++++++
 .../vlc/gui/tv/browser/MediaBrowserTvFragment.kt   | 393 +++------------------
 .../vlc/gui/tv/browser/VerticalGridActivity.kt     |   7 +-
 .../src/org/videolan/vlc/gui/view/FastScroller.kt  |   2 +-
 .../gui/view/RecyclerSectionItemGridDecoration.kt  |  17 +-
 .../org/videolan/vlc/providers/BrowserProvider.kt  |  24 +-
 .../videolan/vlc/providers/FileBrowserProvider.kt  |   6 +-
 .../videolan/vlc/providers/FilePickerProvider.kt   |   2 +-
 .../org/videolan/vlc/providers/HeaderProvider.kt   |  41 +++
 .../providers/medialibrary/MedialibraryProvider.kt |  36 +-
 vlc-android/src/org/videolan/vlc/util/Constants.kt |   4 +-
 .../vlc/viewmodels/browser/BrowserModel.kt         |  22 +-
 .../vlc/viewmodels/browser/NetworkModel.kt         |   2 +-
 .../vlc/viewmodels/tv/MediaBrowserViewModel.kt     |  16 +-
 .../videolan/vlc/viewmodels/tv/TvBrowserModel.kt   |  19 +
 24 files changed, 1167 insertions(+), 673 deletions(-)

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


More information about the Android mailing list