Merge "Don't depend on String8 cast to C string [health]" into main
This commit is contained in:
commit
d937584b22
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ void convertToHealthInfo(const struct android::BatteryProperties *p,
|
|||
info.batteryCycleCount = p->batteryCycleCount;
|
||||
info.batteryFullCharge = p->batteryFullCharge;
|
||||
info.batteryChargeCounter = p->batteryChargeCounter;
|
||||
info.batteryTechnology = p->batteryTechnology;
|
||||
info.batteryTechnology = p->batteryTechnology.c_str();
|
||||
}
|
||||
|
||||
void convertFromHealthInfo(const HealthInfo& info,
|
||||
|
|
Loading…
Reference in a new issue