element-x-android icon indicating copy to clipboard operation
element-x-android copied to clipboard

androidx.compose-bom v2024.09.00 poll rendering regression

Open frebib opened this issue 1 year ago • 3 comments

Steps to reproduce

Vote on a poll and notice it renders weirdly: https://github.com/element-hq/element-x-android/commit/9756afc5d1d2859ca1dbc94827736130ea0120f6#diff-137a3fe986cdfd070ed5df92df53e3b8fe61d01fbf579838fae3add428d49a38

Outcome

What did you expect?

No changes

What happened instead?

Wonky rendering

Your phone model

No response

Operating system version

No response

Application version and app store

No response

Homeserver

No response

Will you send logs?

No

Are you willing to provide a PR?

No

frebib avatar Sep 30 '24 16:09 frebib

Seems related https://issuetracker.google.com/issues/365033302

frebib avatar Sep 30 '24 20:09 frebib

Yes, detected during the PR review https://github.com/element-hq/element-x-android/pull/3399#discussion_r1764641667

bmarty avatar Oct 01 '24 12:10 bmarty

As a possible workaround they say we could use this:

LinearProgressIndicator(
  progress = { animatedProgress },
  trackColor = MaterialTheme.colorScheme.surfaceVariant,
  strokeCap = StrokeCap.Butt,
  gapSize = 0.dp,
  drawStopIndicator = null
)

jmartinesp avatar Oct 02 '24 11:10 jmartinesp

https://github.com/element-hq/element-x-android/pull/3583 should fix this using the workaround provided by Google (https://github.com/element-hq/element-x-android/issues/3566#issuecomment-2388397829).

jmartinesp avatar Oct 09 '24 11:10 jmartinesp