commit | f49d3de387c1107b6d650089e75b6849bc6d2468 | [log] [tgz] |
---|---|---|
author | Kriti Dang <kritidang@google.com> | Thu Dec 01 15:20:35 2022 +0100 |
committer | Kriti Dang <kritidang@google.com> | Tue Dec 06 12:01:52 2022 +0000 |
tree | 4665a8f418113b4efc8afb9a7adea672f84195ef | |
parent | 5932f31d5807aacea83b851e07c9472cf1f817c4 [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