Skip to content

Commit

Permalink
Applied spotless fixes (#813)
Browse files Browse the repository at this point in the history
Co-authored-by: Ian G. Clifton <[email protected]>
Co-authored-by: Rebecca Franks <[email protected]>
  • Loading branch information
3 people authored May 18, 2022
1 parent b0ce645 commit 0f7d595
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ import com.example.jetcaster.util.DynamicThemePrimaryColorsFromImage
import com.example.jetcaster.util.contrastAgainst
import com.example.jetcaster.util.rememberDominantColorState
import com.example.jetcaster.util.verticalGradientScrim
import java.time.Duration
import kotlinx.coroutines.flow.StateFlow
import java.time.Duration

/**
* Stateful version of the Podcast player
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ object UnsplashSizingInterceptor : Interceptor {
val widthPx = chain.size.width.pxOrElse { -1 }
val heightPx = chain.size.height.pxOrElse { -1 }
if (widthPx > 0 && heightPx > 0 && data is String &&
data.startsWith("https://images.unsplash.com/photo-")) {
data.startsWith("https://images.unsplash.com/photo-")
) {
val url = data.toHttpUrl()
.newBuilder()
.addQueryParameter("w", widthPx.toString())
Expand Down

0 comments on commit 0f7d595

Please sign in to comment.