am bb0e985b: Merge "turn off the ligths whenever we see the panel" into mnc-dev
* commit 'bb0e985bed952734f4271672fd804539a66a2d36': turn off the ligths whenever we see the panel
This commit is contained in:
@@ -1613,17 +1613,11 @@ public abstract class BaseStatusBar extends SystemUI implements
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The LEDs are turned off when the notification panel is shown, even just a little bit.
|
* The LEDs are turned off when the notification panel is shown, even just a little bit.
|
||||||
* This was added last-minute and is inconsistent with the way the rest of the notifications
|
|
||||||
* are handled, because the notification isn't really cancelled. The lights are just
|
|
||||||
* turned off. If any other notifications happen, the lights will turn back on. Steve says
|
|
||||||
* this is what he wants. (see bug 1131461)
|
|
||||||
*/
|
*/
|
||||||
protected void handleVisibleToUserChanged(boolean visibleToUser) {
|
protected void handleVisibleToUserChanged(boolean visibleToUser) {
|
||||||
try {
|
try {
|
||||||
if (visibleToUser) {
|
if (visibleToUser) {
|
||||||
// Only stop blinking, vibrating, ringing when the user went into the shade
|
boolean clearNotificationEffects = mShowLockscreenNotifications ||
|
||||||
// manually (SHADE or SHADE_LOCKED).
|
|
||||||
boolean clearNotificationEffects =
|
|
||||||
(mState == StatusBarState.SHADE || mState == StatusBarState.SHADE_LOCKED);
|
(mState == StatusBarState.SHADE || mState == StatusBarState.SHADE_LOCKED);
|
||||||
mBarService.onPanelRevealed(clearNotificationEffects);
|
mBarService.onPanelRevealed(clearNotificationEffects);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user