You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Device/Android Version: compose preview, Pixel 7, Emulator (both API 33)
Issue details / Repro steps / Use case background:
I noticed that modifiers which are applied to a GlideImage, are applied twice. In the example shown below, you can see that the padding as well as the background modifier are applied two times. The expected behavior is that each modifier is only applied once so that the padding is actually only 10.dp and that the background is only visible once too.
The modifier that is provided to GlideImage is passed on to both GlideSubcomposition and each of the child composables which causes the duplication. The solution would be to either use the modifier on the GlideSubcompositionOR use it one the child composables.
The text was updated successfully, but these errors were encountered:
Thanks, I think your bug is a duplicate of #5272 because I don't see you using GlideSubcomposition or providing a composable placeholder, so you won't hit the codepath in GlideImage you pointed out.
That said, It may still be a bug that the modifier is applied twice, so I'll leave this open. If we do submit #5306, then this will be "fixed" (as in deleted) as well.
Glide Version: 4.16.0 / 1.0.0-alpha.5
Device/Android Version: compose preview, Pixel 7, Emulator (both API 33)
Issue details / Repro steps / Use case background:
I noticed that modifiers which are applied to a
GlideImage
, are applied twice. In the example shown below, you can see that the padding as well as the background modifier are applied two times. The expected behavior is that each modifier is only applied once so that the padding is actually only10.dp
and that the background is only visible once too.My code example looks like this:
As far as I can tell, the issue is related to this code block:
glide/integration/compose/src/main/java/com/bumptech/glide/integration/compose/GlideImage.kt
Lines 120 to 153 in b1c6076
The modifier that is provided to
GlideImage
is passed on to bothGlideSubcomposition
and each of the child composables which causes the duplication. The solution would be to either use the modifier on theGlideSubcomposition
OR use it one the child composables.The text was updated successfully, but these errors were encountered: