Fix native adaptive brightness

by Peter Helstrup Jensen

Version 1 (May 1, 2016)

Download (19 downloads)

Disables in low light conditions the native Android adaptive brightness (auto brightness) which does not have a proper hysteresis in low light conditions, resulting in too many brightness adjustments after each other. Enables normal adaptive brightness when lightning conditions are good again.

Currently shows toasts but feel free to change.
Variables to change:

lim: When brightness is lower than lim in percentage disable adaptive brightness.
hys: The hysteresis. Increase hys if it switches too often between adaptive and non adaptive.