aidl: light: Lower battery light priority
Prioritize notification and attention lights over battery. Change-Id: I88fe39a90ea8fb12a48a1a2d2d36e5bf4dca5b94
This commit is contained in:
parent
435cd2659d
commit
842e692081
1 changed files with 5 additions and 3 deletions
|
@ -96,10 +96,12 @@ void Lights::updateNotificationColor() {
|
|||
|
||||
bool isBatteryLit = rgb(mLastBatteryState.color).isLit();
|
||||
bool isAttentionLit = rgb(mLastAttentionState.color).isLit();
|
||||
bool isNotificationsLit = rgb(mLastNotificationsState.color).isLit();
|
||||
|
||||
const HwLightState state = isBatteryLit ? mLastBatteryState
|
||||
: isAttentionLit ? mLastAttentionState
|
||||
: mLastNotificationsState;
|
||||
const HwLightState state = isNotificationsLit ? mLastNotificationsState
|
||||
: isAttentionLit ? mLastAttentionState
|
||||
: isBatteryLit ? mLastBatteryState
|
||||
: HwLightState();
|
||||
|
||||
rgb color(state.color);
|
||||
|
||||
|
|
Loading…
Reference in a new issue