Merge "HeadsUpManager: escalate via wakefulness lifecycle instead of broadcast" into oc-dr1-dev

am: 02be5d1ddd

Change-Id: I0e3d90ebb299cae9268f3d49820776bb7f309991
This commit is contained in:
Selim Cinek
2017-07-27 21:25:48 +00:00
committed by android-build-merger

View File

@@ -3731,7 +3731,6 @@ public class StatusBar extends SystemUI implements DemoMode,
}
}
else if (Intent.ACTION_SCREEN_OFF.equals(action)) {
notifyHeadsUpScreenOff();
finishBarAnimations();
resetUserExpandedStates();
}
@@ -5173,6 +5172,7 @@ public class StatusBar extends SystemUI implements DemoMode,
@Override
public void onStartedGoingToSleep() {
notifyHeadsUpGoingToSleep();
dismissVolumeDialog();
}
@@ -7266,7 +7266,7 @@ public class StatusBar extends SystemUI implements DemoMode,
setAreThereNotifications();
}
protected void notifyHeadsUpScreenOff() {
protected void notifyHeadsUpGoingToSleep() {
maybeEscalateHeadsUp();
}