mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Update ResultViewModel2.kt (#1102)
This commit is contained in:
parent
d0852449a5
commit
960f8449b7
1 changed files with 1 additions and 1 deletions
|
@ -1728,7 +1728,7 @@ class ResultViewModel2 : ViewModel() {
|
||||||
txt(R.string.episode_action_cast_mirror)
|
txt(R.string.episode_action_cast_mirror)
|
||||||
) { (result, index) ->
|
) { (result, index) ->
|
||||||
val host = device?.host ?: return@acquireSingleLink
|
val host = device?.host ?: return@acquireSingleLink
|
||||||
val link = result.links.firstOrNull() ?: return@acquireSingleLink
|
val link = result.links.getOrNull(index) ?: return@acquireSingleLink
|
||||||
|
|
||||||
FcastSession(host).use { session ->
|
FcastSession(host).use { session ->
|
||||||
session.sendMessage(
|
session.sendMessage(
|
||||||
|
|
Loading…
Reference in a new issue