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

Skip to content
Commit 920609e4 authored by petsjonkin's avatar petsjonkin Committed by Oleg Petšjonkin
Browse files

Optimized HdrBrightnessModifier behaviour on display change

1) Otimized LightSensorSubscription on display change
- subscribe to new sensor and then unsubscribe from old to avoid SensorEventQueue recreation
2) onDiplayChange is already called in DisplayControllerHandler, no need to call in in handler
3) When new HdrBrightnessModifier is active, HdrClamper could be disabled
4) Fixed LightSensorControllerTest

Bug: b/353474430
Test: manual testing
Flag: com.android.server.display.feature.flags.new_hdr_brightness_modifier
Change-Id: I744ea06413544b553e25aff3d5ede2e995d46d9d
parent e4b90396
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