summaryrefslogtreecommitdiff
path: root/health/aidl/default/HalHealthLoop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'health/aidl/default/HalHealthLoop.cpp')
-rw-r--r--health/aidl/default/HalHealthLoop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/health/aidl/default/HalHealthLoop.cpp b/health/aidl/default/HalHealthLoop.cpp
index c9a081e0f2..ec23c10bc0 100644
--- a/health/aidl/default/HalHealthLoop.cpp
+++ b/health/aidl/default/HalHealthLoop.cpp
@@ -61,7 +61,7 @@ void HalHealthLoop::OnHealthInfoChanged(const HealthInfo& health_info) {
void HalHealthLoop::set_charger_online(const HealthInfo& health_info) {
charger_online_ = health_info.chargerAcOnline || health_info.chargerUsbOnline ||
- health_info.chargerWirelessOnline;
+ health_info.chargerWirelessOnline || health_info.chargerDockOnline;
}
} // namespace aidl::android::hardware::health