mirror of
https://github.com/recloudstream/cloudstream.git
synced 2025-08-06 11:31:45 +08:00
Fix isCastApiAvailable (#1509)
This commit is contained in:
@ -876,9 +876,8 @@ object AppContextUtils {
|
||||
.isGooglePlayServicesAvailable(applicationContext) == ConnectionResult.SUCCESS
|
||||
|
||||
try {
|
||||
val executor: Executor = Executors.newSingleThreadExecutor()
|
||||
applicationContext?.let {
|
||||
val task = CastContext.getSharedInstance(it, executor)
|
||||
val task = CastContext.getSharedInstance(it) { it.run() }
|
||||
task.result
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
|
Reference in New Issue
Block a user