Skip to content

Commit

Permalink
Update FcastAction.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
CranberrySoup authored Sep 28, 2024
1 parent 21c3737 commit 8783ce8
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ class FcastAction: VideoClickAction() {
) {
val link = result.links.getOrNull(index ?: 0) ?: return
val devices = FcastManager.currentDevices.toList()
context?.getActivity()?.showBottomDialog(
devices.map { it.name },
-1,
txt(R.string.player_settings_select_cast_device).asString(context),
false,
{}) {
val position = getViewPos(video.id)?.position
castTo(devices.getOrNull(it), link, position)
uiThread {
context?.getActivity()?.showBottomDialog(
devices.map { it.name },
-1,
txt(R.string.player_settings_select_cast_device).asString(context),
false,
{}) {
val position = getViewPos(video.id)?.position
castTo(devices.getOrNull(it), link, position)
}
}
}

Expand Down

0 comments on commit 8783ce8

Please sign in to comment.