material-components / material-components-android

Modular and customizable Material Design UI components for Android
Apache License 2.0
16.13k stars 3.05k forks source link

[AppBarLayout] Status bar foreground detaches when flinging #3404

Open pubiqq opened 1 year ago

pubiqq commented 1 year ago

https://github.com/material-components/material-components-android/assets/82187521/660797ca-d945-4167-b73c-7bfecfa652b7

Material Library version: 1.10.0-alpha02 Device: Pixel 4a (5G)

imhappi commented 1 year ago

Oof this seems like an awful bug; but for what it's worth, I haven't been able to repro it on a pixel 4a emulator.

@dsn5ft would you be able to take a look at this?

pubiqq commented 1 year ago

I guess I just didn't explain it well. This happens rather not when you scroll the view, but when you fling it (pay attention to the touch pointer in the video).

And it's definitely reproducible on Pixel 4 API 33 Emulator:

https://github.com/material-components/material-components-android/assets/82187521/43ce418f-ea36-4933-89d7-77c3c77faeb9

imhappi commented 1 year ago

I think I saw it flicker fast when the screen was laggy, but for what it's worth, I'm still not able to repro consistently :/

https://github.com/material-components/material-components-android/assets/7026277/279d8110-b039-4f46-abf0-7e351be8a438

pubiqq commented 1 year ago

Ok, let's try another way:

https://github.com/material-components/material-components-android/assets/82187521/45d8d2ed-18c5-45e5-8b65-c1f0af189511