[Android] Set a headers map in paged models for fast scroll

Geoffrey Métais git at videolan.org
Wed Feb 13 16:15:55 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb 12 17:28:21 2019 +0100| [f42388f6023c3a450c93b15b5fca89448616ce20] | committer: Geoffrey Métais

Set a headers map in paged models for fast scroll

TODO: adapters could use it instead of re-calculating headers

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

 .../src/org/videolan/vlc/gui/PlaylistFragment.kt   |  2 +-
 .../vlc/gui/audio/AudioAlbumsSongsFragment.java    |  4 ++--
 .../vlc/gui/audio/AudioBrowserFragment.java        |  4 ++--
 .../src/org/videolan/vlc/gui/view/FastScroller.kt  | 14 ++++++-----
 .../videolan/vlc/viewmodels/paged/MLPagedModel.kt  | 24 +++++++++++++++++++
 .../vlc/viewmodels/paged/PagedAlbumsModel.kt       | 22 ++++++++++-------
 .../vlc/viewmodels/paged/PagedArtistsModel.kt      |  5 ++--
 .../vlc/viewmodels/paged/PagedFoldersModel.kt      |  2 +-
 .../vlc/viewmodels/paged/PagedGenresModel.kt       |  5 ++--
 .../vlc/viewmodels/paged/PagedPlaylistsModel.kt    |  5 ++--
 .../vlc/viewmodels/paged/PagedTracksModel.kt       | 28 ++++++++++++----------
 11 files changed, 76 insertions(+), 39 deletions(-)

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


More information about the Android mailing list