Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02be5d1d authored by Selim Cinek's avatar Selim Cinek Committed by Android (Google) Code Review
Browse files

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

parents 153d2ff6 3bad9a6c
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -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();
    }
    }