[Android] Refactor the key event listeners to be shared between the players

Nicolas Pomepuy git at videolan.org
Thu Nov 18 09:32:27 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Nov 16 07:57:59 2021 +0100| [82377df9ed8fcbb6689708c51735667fcad86d72] | committer: Nicolas Pomepuy

Refactor the key event listeners to be shared between the players

Fixes #2191

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

 .../ui/audioplayer/AudioPlayerActivity.kt          | 104 +++++++-------
 .../src/org/videolan/vlc/PlaybackService.kt        |  15 ++
 .../vlc/gui/AudioPlayerContainerActivity.kt        |  61 ++++++--
 .../src/org/videolan/vlc/gui/audio/AudioPlayer.kt  |  10 +-
 .../vlc/gui/helpers/PlayerKeyListenerDelegate.kt   | 157 +++++++++++++++++++++
 .../videolan/vlc/gui/video/VideoPlayerActivity.kt  | 118 ++++++++--------
 6 files changed, 335 insertions(+), 130 deletions(-)

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


More information about the Android mailing list