Merge "Don't depend on String8 cast to C string [health]" into main

This commit is contained in:
Treehugger Robot 2023-09-26 18:00:21 +00:00 committed by Gerrit Code Review
commit d937584b22

View file

@ -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,