sdm660-common: Don't advertise attention light
* Messing up notification light in some cases Change-Id: I3fdaf2b0b3408d794ff2c6de7d1c2e6169b7a7a5
This commit is contained in:
parent
4a0d509d3c
commit
98a59e0d2c
1 changed files with 1 additions and 3 deletions
|
@ -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, {}},
|
||||||
}};
|
}};
|
||||||
|
|
Loading…
Reference in a new issue