summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-10-29 11:28:36 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-10-29 11:28:36 +0000
commitc4c0175eaadc704a88607f6a9e245e293f33fef0 (patch)
tree0658882be68350e1e13f214ced3e1cf817304911
parentc20ef789b92938dbf6a986771835caab9217bf4a (diff)
parent988016a45d64d5d196e9ce68dbfb3306a56af578 (diff)
Merge "Ignore null action in NotificationAttentionHelper." into main
-rw-r--r--services/core/java/com/android/server/notification/NotificationAttentionHelper.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/notification/NotificationAttentionHelper.java b/services/core/java/com/android/server/notification/NotificationAttentionHelper.java
index 980f40ee4a9a..9b02ed0ee0bd 100644
--- a/services/core/java/com/android/server/notification/NotificationAttentionHelper.java
+++ b/services/core/java/com/android/server/notification/NotificationAttentionHelper.java
@@ -1597,6 +1597,9 @@ public final class NotificationAttentionHelper {
@Override
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
+ if (action == null) {
+ return;
+ }
if (action.equals(Intent.ACTION_SCREEN_ON)) {
// Keep track of screen on/off state, but do not turn off the notification light