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

Commit 515f5b5e authored by Andrei Ciubotariu's avatar Andrei Ciubotariu
Browse files

BatteryMonitor: Ensure batteryHealthData has value when needed

Since batteryHealthData is annotated in the AIDL with @nullable,
ensure that the std::optional that encloses it has a value when
a field needs to be assigned to batteryHealthData.

If no batteryHealthData updates are needed, the optional remains
"valueless".

Bug: 396737015
Test: Manual
Flag: EXEMPT bugfix
Change-Id: Ica6f20656a566054d7cbaaf339813be6e0e93b78
parent 9e6bd0b8
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