Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
feat:Avoid the plantImage not expanding all the way when you swipe up…
Browse files Browse the repository at this point in the history
… and down quickly.
  • Loading branch information
yela committed Dec 14, 2023
1 parent d092c22 commit 2eef7dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ fun PlantDetails(
hasValidUnsplashKey = hasValidUnsplashKey,
imageHeight = with(LocalDensity.current) {
val candidateHeight =
Dimens.PlantDetailAppBarHeight + toolbarOffsetHeightPx.value.toDp()
Dimens.PlantDetailAppBarHeight
// FIXME: Remove this workaround when https://github.com/bumptech/glide/issues/4952
// is released
maxOf(candidateHeight, 1.dp)
Expand Down

0 comments on commit 2eef7dc

Please sign in to comment.