[Android] Refactor sorted fragments and adapters

Geoffrey Métais git at videolan.org
Tue Jul 25 11:39:45 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jul 24 19:19:20 2017 +0200| [b857e54b169a1aae5067352f3a9736435880f3db] | committer: Geoffrey Métais

Refactor sorted fragments and adapters

Now, sorted adapter automatically sorts and activates DiffUtil moves
detection if needed

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

 .../src/org/videolan/vlc/SortableAdapter.java      | 40 +++++++++--
 .../org/videolan/vlc/gui/BaseQueuedAdapter.java    | 58 ++++++++++++----
 .../vlc/gui/audio/AudioBrowserAdapter.java         | 81 +++++++++++-----------
 .../vlc/gui/audio/AudioBrowserFragment.java        | 10 +--
 .../videolan/vlc/gui/audio/BaseAudioBrowser.java   |  5 --
 .../videolan/vlc/gui/audio/PlaylistAdapter.java    | 20 ------
 .../vlc/gui/browser/BaseBrowserAdapter.java        | 46 ++++--------
 .../vlc/gui/browser/BaseBrowserFragment.java       | 22 +-----
 .../videolan/vlc/gui/browser/SortableFragment.java | 27 +++++++-
 .../src/org/videolan/vlc/gui/helpers/UiTools.java  | 24 +++----
 .../videolan/vlc/gui/video/VideoGridFragment.java  | 18 +----
 .../videolan/vlc/gui/video/VideoListAdapter.java   | 42 ++++++-----
 .../vlc/util/MediaLibraryItemComparator.java       | 38 ----------
 13 files changed, 196 insertions(+), 235 deletions(-)

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


More information about the Android mailing list