summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ash/system/power/tray_power.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ash/system/power/tray_power.cc b/ash/system/power/tray_power.cc
index f7c6a33..4d27337 100644
--- a/ash/system/power/tray_power.cc
+++ b/ash/system/power/tray_power.cc
@@ -391,7 +391,7 @@ void TrayPower::OnPowerStatusChanged(const PowerSupplyStatus& status) {
bool TrayPower::UpdateNotificationState(const PowerSupplyStatus& status) {
if (!status.battery_is_present ||
status.is_calculating_battery_time ||
- status.line_power_on) {
+ status.battery_state != PowerSupplyStatus::DISCHARGING) {
notification_state_ = NOTIFICATION_NONE;
return false;
}