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

Commit 0f788152 authored by Behnam Heydarshahi's avatar Behnam Heydarshahi
Browse files

Updatable flashlight slider default level

We keep track of last user-set level after each slide and next time
the flashlight is enabled we turn on to that saved  level.

NOTE: The is a separation: when the flash is off, the flashlight repo
will say level is last enabled permanent level, but the CameraManager
will say level is default level. This is correct behavior, because at
this point if the user turns on the flashlight via repo it will turn
on to last enabled value, and if the user turns on the flashlight via
camera manager it  will turn on to default.

Bug: 438211714
Flag: com.android.systemui.flashlight_strength
Test: atest FlashlightRepositoryTest
Change-Id: I76f5642b6a03f46b01207726c48a73513aad160e
parent d5812467
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment