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

Commit 1da4c747 authored by Kevin Han's avatar Kevin Han
Browse files

Don't allow HUNs during dozing fullscreen intents

Move check preventing HUN from canAlertCommonWake to canAlertCommon so
that we dont HUN while a fullscreen intent is active.

Bug: 153705384
Test: repro in bug does not cause HUN
Change-Id: I3e520621027d53da44556e925f21756bea8eac5b
parent d53e8618
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -336,6 +336,14 @@ public class NotificationInterruptStateProviderImpl implements NotificationInter
                return false;
            }
        }

        if (entry.hasJustLaunchedFullScreenIntent()) {
            if (DEBUG_HEADS_UP) {
                Log.d(TAG, "No alerting: recent fullscreen: " + sbn.getKey());
            }
            return false;
        }

        return true;
    }

@@ -365,13 +373,6 @@ public class NotificationInterruptStateProviderImpl implements NotificationInter
            return false;
        }

        if (entry.hasJustLaunchedFullScreenIntent()) {
            if (DEBUG_HEADS_UP) {
                Log.d(TAG, "No alerting: recent fullscreen: " + sbn.getKey());
            }
            return false;
        }

        return true;
    }