instead-launcher-android icon indicating copy to clipboard operation
instead-launcher-android copied to clipboard

Confusing loading state in Battery Saver

Open graciouselectric opened this issue 1 year ago • 1 comments

Dear developer,

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:

org.emunix.insteadlauncher.ui.game.GameFragment', lineNumber=1

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

graciouselectric avatar May 06 '24 15:05 graciouselectric

Hello. The text is already displayed above the progress bar. It reports on the current action, for example, it shows the progress of a downloaded game in megabytes. I don’t really understand what else can be added here.

btimofeev avatar May 11 '24 07:05 btimofeev