Skip to content

Commit

Permalink
Fix blinking artwork (#1725)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashiagr authored Jan 23, 2024
1 parent 1c96490 commit 0331528
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ import javax.inject.Inject
import kotlin.math.abs
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import okhttp3.Headers.Companion.headersOf
import au.com.shiftyjelly.pocketcasts.images.R as IR
import au.com.shiftyjelly.pocketcasts.localization.R as LR

Expand Down Expand Up @@ -374,6 +375,7 @@ class PlayerHeaderFragment : BaseFragment(), PlayerClickListener {

val imageBuilder: ImageRequest.Builder.() -> Unit = {
error(IR.drawable.defaultartwork_dark)
headers(headersOf("User-Agent", Settings.USER_AGENT_POCKETCASTS_SERVER))
scale(Scale.FIT)
transformations(RoundedCornersTransformation(imageLoader.radiusPx.toFloat()), ThemedImageTintTransformation(imageView.context))
}
Expand Down

0 comments on commit 0331528

Please sign in to comment.