sdm845-common: lights: Make notification led priority > battery led one

Change-Id: Ibece77fb3495f9add70668d8ca0e74a8fe66d83a
This commit is contained in:
LuK1337 2020-04-01 11:32:20 +02:00 committed by Łukasz Patron
parent 63c3a95b45
commit 1ef6a00e0b

View file

@ -58,8 +58,8 @@ static int rgbToBrightness(const LightState& state) {
Light::Light() {
mLights.emplace(Type::ATTENTION, std::bind(&Light::handleRgb, this, std::placeholders::_1, 0));
mLights.emplace(Type::BACKLIGHT, std::bind(&Light::handleBacklight, this, std::placeholders::_1));
mLights.emplace(Type::BATTERY, std::bind(&Light::handleRgb, this, std::placeholders::_1, 1));
mLights.emplace(Type::NOTIFICATIONS, std::bind(&Light::handleRgb, this, std::placeholders::_1, 2));
mLights.emplace(Type::BATTERY, std::bind(&Light::handleRgb, this, std::placeholders::_1, 2));
mLights.emplace(Type::NOTIFICATIONS, std::bind(&Light::handleRgb, this, std::placeholders::_1, 1));
}
void Light::handleBacklight(const LightState& state) {