sdm660-common: Don't advertise attention light

* Messing up notification light in some cases

Change-Id: I3fdaf2b0b3408d794ff2c6de7d1c2e6169b7a7a5
This commit is contained in:
dianlujitao 2020-02-06 23:10:54 +08:00 committed by OdSazib
parent 4a0d509d3c
commit 98a59e0d2c
No known key found for this signature in database
GPG key ID: CB336514F9F5CF69

View file

@ -48,14 +48,12 @@ class Light : public ILight {
uint32_t max_screen_brightness_; uint32_t max_screen_brightness_;
std::unordered_map<Type, std::function<void(Type type, const LightState&)>> lights_{ std::unordered_map<Type, std::function<void(Type type, const LightState&)>> lights_{
{Type::ATTENTION, [this](auto&&... args) { setLightNotification(args...); }},
{Type::BACKLIGHT, [this](auto&&... args) { setLightBacklight(args...); }}, {Type::BACKLIGHT, [this](auto&&... args) { setLightBacklight(args...); }},
{Type::BATTERY, [this](auto&&... args) { setLightNotification(args...); }}, {Type::BATTERY, [this](auto&&... args) { setLightNotification(args...); }},
{Type::NOTIFICATIONS, [this](auto&&... args) { setLightNotification(args...); }}}; {Type::NOTIFICATIONS, [this](auto&&... args) { setLightNotification(args...); }}};
// Keep sorted in the order of importance. // Keep sorted in the order of importance.
std::array<std::pair<Type, LightState>, 3> notif_states_ = {{ std::array<std::pair<Type, LightState>, 2> notif_states_ = {{
{Type::ATTENTION, {}},
{Type::NOTIFICATIONS, {}}, {Type::NOTIFICATIONS, {}},
{Type::BATTERY, {}}, {Type::BATTERY, {}},
}}; }};