Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Brightness settings uses default brightness value when at minimum on some devices #283

Open
Sought opened this issue Jan 16, 2020 · 0 comments

Comments

@Sought
Copy link

Sought commented Jan 16, 2020

Steps to reproduce:

  • Open any EPUB, go to settings, and move the brightness scrollbar to the lowest value possible

Result expected:

  • Minimal value.

Result observed:

  • Default brightness was used.

Tested on:

  • Xiaomi A3 phone - does have the issue
  • Huawei BTV-W09 tablet - doesn't have this issue.

What to do?

The code present in UserSettings.kt probably sets the screen brightness to a near 0 float value that is negative. An hotfix snippet setting it to 0.01.toFloat() fixed the issue.

@Sought Sought changed the title Luminosity settings uses default luminosity value when at minimum on some devices Brightness settings uses default brightness value when at minimum on some devices Jan 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants