[Android] Create intermediate classes to clean code
Geoffrey Métais
git at videolan.org
Thu Jul 20 11:31:59 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jul 20 11:30:21 2017 +0200| [5ca75606f3bdd6aef2596e2662569c7522a40e7c] | committer: Geoffrey Métais
Create intermediate classes to clean code
Menu & sorting management are delegeted to ContentActivity and
SortableFragment now.
Menu items click management are dispatched to concerned fragments
> https://code.videolan.org/videolan/vlc-android/commit/5ca75606f3bdd6aef2596e2662569c7522a40e7c
---
vlc-android/res/menu/activity_option.xml | 3 +-
.../vlc/gui/AudioPlayerContainerActivity.java | 193 ++-------------------
.../src/org/videolan/vlc/gui/ContentActivity.java | 146 ++++++++++++++++
.../src/org/videolan/vlc/gui/HistoryFragment.java | 11 ++
.../src/org/videolan/vlc/gui/MainActivity.java | 32 +---
.../org/videolan/vlc/gui/SecondaryActivity.java | 4 +-
.../vlc/gui/audio/AudioAlbumsSongsFragment.java | 21 +--
.../vlc/gui/audio/AudioBrowserFragment.java | 1 -
.../videolan/vlc/gui/audio/BaseAudioBrowser.java | 39 ++++-
.../vlc/gui/browser/BaseBrowserFragment.java | 3 +-
.../vlc/gui/browser/MediaBrowserFragment.java | 15 +-
.../vlc/gui/browser/NetworkBrowserFragment.java | 14 +-
.../videolan/vlc/gui/browser/SortableFragment.java | 75 ++++++++
.../videolan/vlc/gui/video/VideoGridFragment.java | 19 +-
.../src/org/videolan/vlc/interfaces/ISortable.java | 26 ---
vlc-android/src/org/videolan/vlc/util/Util.java | 68 ++++----
16 files changed, 357 insertions(+), 313 deletions(-)
Diff: https://code.videolan.org/videolan/vlc-android/commit/5ca75606f3bdd6aef2596e2662569c7522a40e7c
More information about the Android
mailing list