material-components / material-components-android

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

[Progress Bar] Indeterminate ProgressBar gets Frozen #2355

Open goldfish07 opened 3 years ago

goldfish07 commented 3 years ago

today i noticed a bug, in this the Indeterminate progress bar get stuck, when using Transition Animation effect with custom effects , there is different behavior in both AppCompat Progressbar and Material component Progressbar , and also when i again start a new activity without Transition Animation effect , the Indeterminate progress animation resume again.

Steps to reproduce the problem

  1. implement the progress bar in MainActivity
  2. start a new activity with Transition with custom effect
  3. now come back to main activity
  4. you will see the progress bar freezes

tested on Android 10, Samsung One UI 2.0

in pixel device only material component's Indeterminate progresBar is freezing

i have tested on : pixel 5 API 29 (Android 10) pixel 5 API 30 (Android 11) pixel 5 API 31 (Android 12)

source code uploaded here https://github.com/goldfish07/Indeterminate-progress-bar-Bug

https://issuetracker.google.com/issues/198091796

https://user-images.githubusercontent.com/34901152/131837829-f4c12850-38e4-4ef1-902a-aa77e7ae9ec6.mp4

BasilVictor commented 3 years ago

Have encountered the same issue, circular progress freezes when device wakes from sleep. Steps to replicate:

  1. Create any version of circular progress indicator
  2. Run the app
  3. Lock the device
  4. Unlock the device, the circular progress is now frozen
lcgao commented 3 years ago

Hello, any updates for this issue?

pekingme commented 3 years ago

Tested on Android 11, Samsung One UI 3.1 and Pixel 5 (emulator) Cannot reproduce with lock and unlock in catalog. Can reproduce with goldfish07's example. It seems there's a bug using progress indicator with transition animation.

riccardoch commented 1 year ago

I can confirm the issue with transition animation.

nikolaevmaks commented 1 year ago

Indeterminate animation (CircularProgressIndicator) does not resume after turning screen off/on

ghost commented 12 months ago

Same problem on API 30,if i exit the app,it will be frozen when i resume