diff options
author | dianlujitao <dianlujitao@lineageos.org> | 2020-02-06 23:10:54 +0800 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2020-04-30 00:49:34 +0300 |
commit | 54bb90253415cf4d301f8d99ec7cf775ca432439 (patch) | |
tree | 084a5059b9452218d0132adb7b5f5cdb0aae8bca /light | |
parent | c279339ab927e2bdb77aa42973ef3e320c025364 (diff) |
sdm660-common: Don't advertise attention light
* Messing up notification light in some cases
Change-Id: I3fdaf2b0b3408d794ff2c6de7d1c2e6169b7a7a5
Diffstat (limited to 'light')
-rw-r--r-- | light/Light.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/light/Light.h b/light/Light.h index 8427148..7acefa7 100644 --- a/light/Light.h +++ b/light/Light.h @@ -48,14 +48,12 @@ class Light : public ILight { uint32_t max_screen_brightness_; 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::BATTERY, [this](auto&&... args) { setLightNotification(args...); }}, {Type::NOTIFICATIONS, [this](auto&&... args) { setLightNotification(args...); }}}; // Keep sorted in the order of importance. - std::array<std::pair<Type, LightState>, 3> notif_states_ = {{ - {Type::ATTENTION, {}}, + std::array<std::pair<Type, LightState>, 2> notif_states_ = {{ {Type::NOTIFICATIONS, {}}, {Type::BATTERY, {}}, }}; |