summaryrefslogtreecommitdiff
path: root/libs/androidfw/ConfigDescription.cpp
diff options
context:
space:
mode:
author Kriti Dang <kritidang@google.com> 2022-12-01 15:20:35 +0100
committer Kriti Dang <kritidang@google.com> 2022-12-06 12:01:52 +0000
commitf49d3de387c1107b6d650089e75b6849bc6d2468 (patch)
tree4665a8f418113b4efc8afb9a7adea672f84195ef /libs/androidfw/ConfigDescription.cpp
parent5932f31d5807aacea83b851e07c9472cf1f817c4 (diff)
Initialise the brightness value with Float.NaN in PersistentDataStore
If there is no DisplayState, and it gets initialised because of any other field, for instance refresh-rate, the brightness gets initialised by 0. Since 0 is a permissible value for brightness, is causes issues by changing the brightness to 0. Bug: 259517441 Test: atest PersistentDataStoreTest Change-Id: I532afc9e9d437199922f83f3c4440127a86a88f5
Diffstat (limited to 'libs/androidfw/ConfigDescription.cpp')
0 files changed, 0 insertions, 0 deletions