Persist the nit brightness for the default display

Store the brightness for the default display in nits in persistent data store so that it can be persisted if the device reboots or the display device changes.

Bug: 258455654
Test: adb shell dumpsys display | grep mPersistBrightnessNitsForDefaultDisplay
Change-Id: I20a0a686ee1e4e945fbcd99d5b996534f8ef93b7
Merged-In: I20a0a686ee1e4e945fbcd99d5b996534f8ef93b7
This commit is contained in:
Piotr Wilczyński 2023-02-16 15:40:23 +00:00
parent a976196f43
commit 0af89589cf

View file

@ -350,4 +350,8 @@
<item>283</item>
<item>283</item>
</integer-array>
<!-- Whether we should persist the brightness value in nits for the default display even if
the underlying display device changes. -->
<bool name="config_persistBrightnessNitsForDefaultDisplay">true</bool>
</resources>