Call into the notification manager when the panel is revealed.
This lets it turn off the LED. However, it seems like somebody broke the notification LEDs. GRRR. Change-Id: I3f7066c2b2e1673dc0144a34cf59946351a647be
This commit is contained in:
@@ -277,13 +277,14 @@ public class StatusBarManagerService extends IStatusBarService.Stub
|
||||
}
|
||||
|
||||
/**
|
||||
* The status bar service should call this when the user changes whether
|
||||
* the status bar is visible or not.
|
||||
* The status bar service should call this each time the user brings the panel from
|
||||
* invisible to visible in order to clear the notification light.
|
||||
*/
|
||||
public void visibilityChanged(boolean visible) {
|
||||
public void onPanelRevealed() {
|
||||
enforceStatusBarService();
|
||||
|
||||
//Slog.d(TAG, "visibilityChanged visible=" + visible);
|
||||
// tell the notification manager to turn off the lights.
|
||||
mNotificationCallbacks.onPanelRevealed();
|
||||
}
|
||||
|
||||
public void onNotificationClick(String pkg, String tag, int id) {
|
||||
@@ -445,24 +446,6 @@ public class StatusBarManagerService extends IStatusBarService.Stub
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The LEDs are turned o)ff 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)
|
||||
*/
|
||||
private boolean mPanelSlightlyVisible;
|
||||
void panelSlightlyVisible(boolean visible) {
|
||||
if (mPanelSlightlyVisible != visible) {
|
||||
mPanelSlightlyVisible = visible;
|
||||
if (visible) {
|
||||
// tell the notification manager to turn off the lights.
|
||||
mNotificationCallbacks.onPanelRevealed();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() {
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
String action = intent.getAction();
|
||||
|
||||
Reference in New Issue
Block a user