Browse Source

PlayerOption: fix VideoControls not visible

When showing player options for the first time since starting the
player, the video specific options were not visible due to updating the
option list before add the video options to the list. Updates to the
list are now after adding the video options.
merge-requests/1287/head
Duncan McNamara 5 years ago
parent
commit
c8c95a990e
  1. 2
      application/vlc-android/src/org/videolan/vlc/gui/helpers/PlayerOptionsDelegate.kt

2
application/vlc-android/src/org/videolan/vlc/gui/helpers/PlayerOptionsDelegate.kt

@ -105,7 +105,6 @@ class PlayerOptionsDelegate(val activity: FragmentActivity, val service: Playbac
options.add(PlayerOption(ID_SAVE_PLAYLIST, R.drawable.ic_addtoplaylist, res.getString(R.string.playlist_save)))
if (service.playlistManager.player.canDoPassthrough() && settings.getString("aout", "0") == "0")
options.add(PlayerOption(ID_PASSTHROUGH, R.drawable.ic_passthrough, res.getString(R.string.audio_digital_title)))
(recyclerview.adapter as OptionsAdapter).update(options)
if (!Settings.showTvUi) {
if (video) {
options.add(PlayerOption(ID_VIDEO_CONTROLS_SETTING, R.drawable.ic_video_controls, res.getString(R.string.controls_setting)))
@ -116,6 +115,7 @@ class PlayerOptionsDelegate(val activity: FragmentActivity, val service: Playbac
options.add(PlayerOption(ID_SHOW_PLAYLIST_TIPS, R.drawable.ic_playlisttips, res.getString(R.string.playlist_tips)))
}
}
(recyclerview.adapter as OptionsAdapter).update(options)
}
fun show() {

Loading…
Cancel
Save