Skip to content

Commit

Permalink
Fix isCastApiAvailable (#1509)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luna712 authored Jan 26, 2025
1 parent bc7617f commit 7d58c6e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7d58c6e

Please sign in to comment.