File tree 3 files changed +16
-4
lines changed
modules/services/repositories/src/main/java/au/com/shiftyjelly/pocketcasts/repositories/chromecast
3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Release notes
2
2
3
+ ### 7.21.1
4
+
5
+ * Bug Fixes:
6
+ * Fix Chromecast not taking over playback after connection.
7
+ ([ #308 ] ( https://github.com/Automattic/pocket-casts-android/pull/308 ) ).
8
+ * Fix the discover artwork scaling issue.
9
+ ([ #308 ] ( https://github.com/Automattic/pocket-casts-android/pull/308 ) ).
10
+
3
11
### 7.21.0
4
12
5
13
* Bug Fixes:
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ project.ext {
26
26
applicationId = ' au.com.shiftyjelly.pocketcasts'
27
27
28
28
versionCode = getVersionCode()
29
- versionName = ' 7.21.0 ' + getVersionNameSuffix()
29
+ versionName = ' 7.21.1 ' + getVersionNameSuffix()
30
30
31
31
// Android
32
32
minSdkVersion = 23
@@ -153,8 +153,8 @@ project.ext {
153
153
glide : " com.github.bumptech.glide:glide:$versionGlide " ,
154
154
glideOkHttp : " com.github.bumptech.glide:okhttp3-integration:$versionGlide " ,
155
155
glideCompile : " com.github.bumptech.glide:compiler:$versionGlide " ,
156
- coil : " io.coil-kt:coil:2.2.0 " ,
157
- coilCompose : " io.coil-kt:coil-compose:2.2.0 " ,
156
+ coil : " io.coil-kt:coil:2.2.1 " ,
157
+ coilCompose : " io.coil-kt:coil-compose:2.2.1 " ,
158
158
// OkHttp (http client) - https://github.com/square/okhttp
159
159
okHttp : " com.squareup.okhttp3:okhttp:4.9.3" ,
160
160
okHttpLogging : " com.squareup.okhttp3:logging-interceptor:4.9.3" ,
Original file line number Diff line number Diff line change 1
1
package au.com.shiftyjelly.pocketcasts.repositories.chromecast
2
2
3
3
import android.content.Context
4
+ import androidx.core.content.ContextCompat
4
5
import au.com.shiftyjelly.pocketcasts.utils.log.LogBuffer
5
6
import com.google.android.gms.cast.framework.CastContext
6
7
import com.google.android.gms.cast.framework.Session
@@ -23,7 +24,10 @@ class CastManagerImpl @Inject constructor(@ApplicationContext private val contex
23
24
override val isConnectedObservable = BehaviorRelay .create<Boolean >().apply { accept(false ) }
24
25
25
26
init {
26
- getSessionManager()?.addSessionManagerListener(sessionManagerListener)
27
+ val executor = ContextCompat .getMainExecutor(context)
28
+ CastContext .getSharedInstance(context, executor)
29
+ .addOnFailureListener { e -> LogBuffer .e(LogBuffer .TAG_PLAYBACK , " Failed to init CastContext shared instance ${e.message} " ) }
30
+ .addOnSuccessListener { castContext -> castContext.sessionManager.addSessionManagerListener(sessionManagerListener) }
27
31
}
28
32
29
33
override suspend fun isAvailable (): Boolean {
You can’t perform that action at this time.
0 commit comments