Skip to content
This repository was archived by the owner on Jul 29, 2022. It is now read-only.
This repository was 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

@Sought

Description

@Sought

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions