From 0d40658bc05cd823a595edb6634928e1e3e9d1c5 Mon Sep 17 00:00:00 2001 From: dianlujitao Date: Mon, 1 Jun 2020 20:21:38 +0800 Subject: sdm660-common: Fix battery light not lit after notification light off Change-Id: Id4312627cfb4d26507bc78592a5952d909e7e04d --- light/Light.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/light/Light.cpp b/light/Light.cpp index 1702603..a9423a0 100644 --- a/light/Light.cpp +++ b/light/Light.cpp @@ -190,10 +190,10 @@ void Light::setLightNotification(Type type, const LightState& state) { } // Fallback to battery light - if (!found && (cur_type == Type::BATTERY || IsLit(state.color))) { + if (!found && (cur_type == Type::BATTERY || IsLit(cur_state.color))) { found = true; LOG(DEBUG) << __func__ << ": type=" << toString(cur_type); - applyNotificationState(state); + applyNotificationState(cur_state); } } } -- cgit v1.2.3