Merge "HeadsUpManager: escalate via wakefulness lifecycle instead of broadcast" into oc-dr1-dev
This commit is contained in:
@@ -3720,7 +3720,6 @@ public class StatusBar extends SystemUI implements DemoMode,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (Intent.ACTION_SCREEN_OFF.equals(action)) {
|
else if (Intent.ACTION_SCREEN_OFF.equals(action)) {
|
||||||
notifyHeadsUpScreenOff();
|
|
||||||
finishBarAnimations();
|
finishBarAnimations();
|
||||||
resetUserExpandedStates();
|
resetUserExpandedStates();
|
||||||
}
|
}
|
||||||
@@ -5162,6 +5161,7 @@ public class StatusBar extends SystemUI implements DemoMode,
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onStartedGoingToSleep() {
|
public void onStartedGoingToSleep() {
|
||||||
|
notifyHeadsUpGoingToSleep();
|
||||||
dismissVolumeDialog();
|
dismissVolumeDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7254,7 +7254,7 @@ public class StatusBar extends SystemUI implements DemoMode,
|
|||||||
setAreThereNotifications();
|
setAreThereNotifications();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void notifyHeadsUpScreenOff() {
|
protected void notifyHeadsUpGoingToSleep() {
|
||||||
maybeEscalateHeadsUp();
|
maybeEscalateHeadsUp();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user