Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Confusing loading state in Battery Saver #662

Open
graciouselectric opened this issue May 7, 2024 · 0 comments
Open

Confusing loading state in Battery Saver #662

graciouselectric opened this issue May 7, 2024 · 0 comments

Comments

@graciouselectric
Copy link

Dear developers,

I noticed that when I enable Battery Saver on Android 8.1, the indeterminate ProgressBars in the app are not properly shown. 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 appear and animate.

Looking at the code, indeterminate progress bars are created here:

className='de.geeksfactory.opacclient.ui.AppCompatProgressDialog', lineNumber=2

To fix this issue, one can check ValueAnimator.areAnimatorsEnabled() and provide a different UI element, such as a text label, when animations are disabled.

I took a screenshot of the issue, too:

de geeksfactory opacclient

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant