From 54bb90253415cf4d301f8d99ec7cf775ca432439 Mon Sep 17 00:00:00 2001 From: dianlujitao Date: Thu, 6 Feb 2020 23:10:54 +0800 Subject: sdm660-common: Don't advertise attention light * Messing up notification light in some cases Change-Id: I3fdaf2b0b3408d794ff2c6de7d1c2e6169b7a7a5 --- light/Light.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'light') 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> 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, 3> notif_states_ = {{ - {Type::ATTENTION, {}}, + std::array, 2> notif_states_ = {{ {Type::NOTIFICATIONS, {}}, {Type::BATTERY, {}}, }}; -- cgit v1.2.3