Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16ad2a72 authored by Will's avatar Will
Browse files

Tweak ambient light thresholds.

In particular, make the "dark" threshold higher so that it is easier to
get into low-light mode.

Test: manually by inspecting logs while adjusting ambient light.
Bug: 230418765
Change-Id: I245297ceeb0a596fea6e44c58baf2aea8f4db45b
parent 692e5f7d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -622,11 +622,11 @@

    <!-- This value is used when calculating whether the device is in ambient light mode. It is
        light mode when the light sensor sample value exceeds above this value. -->
    <integer name="config_ambientLightModeThreshold">5</integer>
    <integer name="config_ambientLightModeThreshold">10</integer>

    <!-- This value is used when calculating whether the device is in ambient dark mode. It is
        dark mode when the light sensor sample value drops below this value. -->
    <integer name="config_ambientDarkModeThreshold">2</integer>
    <integer name="config_ambientDarkModeThreshold">5</integer>

    <!-- This value is used when calculating whether the device is in ambient light mode. Each
        sample contains light sensor events from this span of time duration. -->