Skip to content

Commit dd3be24

Browse files
authored
Removes check for available devices before displaying chromecast button (#2412)
Once the button is selected, the chrome cast service will search for devices and notify the user if none have been found
1 parent 7b00fce commit dd3be24

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

app/src/main/java/com/lagradost/cloudstream3/ui/result/ResultFragmentPhone.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -559,12 +559,7 @@ open class ResultFragmentPhone : FullScreenPlayer() {
559559
CastContext.getSharedInstance(act.applicationContext) {
560560
it.run()
561561
}.addOnCompleteListener {
562-
isGone = if (it.isSuccessful) {
563-
it.result.castState == CastState.NO_DEVICES_AVAILABLE
564-
} else {
565-
true
566-
}
567-
562+
isGone = !it.isSuccessful
568563
}
569564
// this shit leaks for some reason
570565
//castContext.addCastStateListener { state ->

0 commit comments

Comments
 (0)