* commit '3bf7b80e48eb58254a076f5363f1e9e3348abb8c': Log the state of the notification shade
This commit is contained in:
@@ -9,6 +9,7 @@ option java_package com.android.systemui;
|
|||||||
36001 sysui_heads_up_status (key|3),(visible|1)
|
36001 sysui_heads_up_status (key|3),(visible|1)
|
||||||
36002 sysui_fullscreen_notification (key|3)
|
36002 sysui_fullscreen_notification (key|3)
|
||||||
36003 sysui_heads_up_escalation (key|3)
|
36003 sysui_heads_up_escalation (key|3)
|
||||||
|
36004 sysui_status_bar_state (state|1)
|
||||||
|
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
# PhoneStatusBarView.java
|
# PhoneStatusBarView.java
|
||||||
|
|||||||
@@ -3795,14 +3795,19 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
|
|||||||
* @param state The {@link StatusBarState} to set.
|
* @param state The {@link StatusBarState} to set.
|
||||||
*/
|
*/
|
||||||
public void setBarState(int state) {
|
public void setBarState(int state) {
|
||||||
// If we're visible and switched to SHADE_LOCKED (the user dragged down
|
if (state != mState) {
|
||||||
// on the lockscreen), clear notification LED, vibration, ringing.
|
EventLogTags.writeSysuiStatusBarState(state);
|
||||||
// Other transitions are covered in handleVisibleToUserChanged().
|
|
||||||
if (mVisible && mState != state && state == StatusBarState.SHADE_LOCKED) {
|
// If we're visible and switched to SHADE_LOCKED (the user dragged
|
||||||
try {
|
// down on the lockscreen), clear notification LED, vibration,
|
||||||
mBarService.clearNotificationEffects();
|
// ringing.
|
||||||
} catch (RemoteException e) {
|
// Other transitions are covered in handleVisibleToUserChanged().
|
||||||
// Ignore.
|
if (mVisible && state == StatusBarState.SHADE_LOCKED) {
|
||||||
|
try {
|
||||||
|
mBarService.clearNotificationEffects();
|
||||||
|
} catch (RemoteException e) {
|
||||||
|
// Ignore.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mState = state;
|
mState = state;
|
||||||
|
|||||||
Reference in New Issue
Block a user