summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordianlujitao <dianlujitao@lineageos.org>2020-06-01 20:21:38 +0800
committerdianlujitao <dianlujitao@lineageos.org>2020-06-01 21:22:58 +0800
commit0d40658bc05cd823a595edb6634928e1e3e9d1c5 (patch)
treecb64134c1e1de478cf07b8586dd15139c11528aa
parent274d6a17a2ca28d5cddc1e207d758b8435eb13b3 (diff)
sdm660-common: Fix battery light not lit after notification light off
Change-Id: Id4312627cfb4d26507bc78592a5952d909e7e04d
-rw-r--r--light/Light.cpp4
1 files 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);
}
}
}