[Android] Refactor SubtitleAdapter events

Habib Kazemi git at videolan.org
Mon Oct 22 15:13:52 CEST 2018


vlc-android | branch: master | Habib Kazemi <kazemihabib1996 at gmail.com> | Fri Oct 19 19:33:29 2018 +0330| [26e203897d468326d417513824951174095be1ae] | committer: Geoffrey Métais

Refactor SubtitleAdapter events

Move duplicate code to parent fragment and Show toast on long press

Signed-off-by: Geoffrey Métais <geoffrey.metais at gmail.com>

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

 vlc-android/res/values/strings.xml                 |  2 ++
 .../vlc/gui/dialogs/SubtitleDownloadFragment.kt    | 19 +---------
 .../dialogs/SubtitleDownloaderDialogFragment.kt    | 42 ++++++++++++++++++++++
 .../vlc/gui/dialogs/SubtitleHistoryFragment.kt     | 19 +---------
 .../videolan/vlc/gui/dialogs/SubtitlesAdapter.kt   | 24 ++++++++++---
 5 files changed, 65 insertions(+), 41 deletions(-)

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


More information about the Android mailing list