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
I noticed that, when I enable Battery Saver on Android 8.1, the indeterminate ProgressBars in the app disappear. This is a known problem in Android API level <28, see e.g. this StackOverflow question. Battery Saver disables animations, also on progress bars on these versions. This is quite confusing because the loading state is not properly represented. It is fixed in later Android versions, where progress bars do animate.
Looking at the code, indeterminate progress bars are created here:
To fix this issue, you can check ValueAnimator.areAnimatorsEnabled() and provide a different UI element, such as a text label, when animations are disabled.
The text was updated successfully, but these errors were encountered:
Dear developer,
I noticed that, when I enable Battery Saver on Android 8.1, the indeterminate
ProgressBar
s in the app disappear. This is a known problem in Android API level <28, see e.g. this StackOverflow question. Battery Saver disables animations, also on progress bars on these versions. This is quite confusing because the loading state is not properly represented. It is fixed in later Android versions, where progress bars do animate.Looking at the code, indeterminate progress bars are created here:
To fix this issue, you can check ValueAnimator.areAnimatorsEnabled() and provide a different UI element, such as a text label, when animations are disabled.
The text was updated successfully, but these errors were encountered: