mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
Always use the chapters dialog as on title click action
This commit is contained in:
parent
93b073a357
commit
7b16580cb1
@ -1159,17 +1159,14 @@ class PlayerFragment : BaseFragment(), OnlinePlayerOptions {
|
||||
"(${chapter.start?.let { DateUtils.formatElapsedTime(it) }}) ${chapter.title}"
|
||||
}
|
||||
playerBinding.chapterLL.setOnClickListener {
|
||||
if (viewModel.isFullscreen.value!!) {
|
||||
MaterialAlertDialogBuilder(requireContext())
|
||||
.setTitle(R.string.chapters)
|
||||
.setItems(titles.toTypedArray()) { _, index ->
|
||||
exoPlayer.seekTo(chapters[index].start!! * 1000)
|
||||
}
|
||||
.show()
|
||||
} else {
|
||||
toggleDescription()
|
||||
}
|
||||
MaterialAlertDialogBuilder(requireContext())
|
||||
.setTitle(R.string.chapters)
|
||||
.setItems(titles.toTypedArray()) { _, index ->
|
||||
exoPlayer.seekTo(chapters[index].start!! * 1000)
|
||||
}
|
||||
.show()
|
||||
}
|
||||
|
||||
setCurrentChapterName()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user