[Android] Factorize a thread queue for adapters

Geoffrey Métais git at videolan.org
Tue Feb 21 17:34:52 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb 21 17:31:20 2017 +0100| [93b03bf0bb0f2c6a7384e71c50f1d2777288b34e] | committer: Geoffrey Métais

Factorize a thread queue for adapters

Base adapter class with threadpool of max 1 thread to serialize diffutil
calculations in background

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

 .../org/videolan/vlc/gui/ThreadQueueAdapter.java   | 44 ++++++++++++++++++++++
 .../vlc/gui/audio/AudioBrowserAdapter.java         |  7 ++--
 .../videolan/vlc/gui/audio/PlaylistAdapter.java    | 11 ++----
 .../vlc/gui/browser/BaseBrowserAdapter.java        | 11 ++----
 .../videolan/vlc/gui/video/VideoListAdapter.java   |  7 ++--
 5 files changed, 58 insertions(+), 22 deletions(-)

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


More information about the Android mailing list