From 65263376f772a4fdaff5fd9253d5733bb0e367c3 Mon Sep 17 00:00:00 2001 From: Pawan Wagh Date: Fri, 17 Jan 2025 11:24:39 -0800 Subject: [PATCH] Updating the notification ID PageAgnosticNotificationService - updating notification id to avoid the notification being dismissed accidentally by other notifications. ID used is the bug id where this was reported. Change-Id: I267eed1d14158f06ea688a48c65be209993b869d Test: atest Enable16KbTest Bug: 388678898 --- .../development/PageAgnosticNotificationService.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/development/PageAgnosticNotificationService.java b/src/com/android/settings/development/PageAgnosticNotificationService.java index d33f1da1fc7..58c26df92e1 100644 --- a/src/com/android/settings/development/PageAgnosticNotificationService.java +++ b/src/com/android/settings/development/PageAgnosticNotificationService.java @@ -36,7 +36,11 @@ public class PageAgnosticNotificationService extends Service { "com.android.settings.development.PageAgnosticNotificationService"; public static final String INTENT_ACTION_DISMISSED = "com.android.settings.development.NOTIFICATION_DISMISSED"; - private static final int NOTIFICATION_ID = 1; + + // Updating the notification ID to avoid the notification being dismissed + // accidentally by other notifications. ID used is the bug id where this was + // reported. + private static final int NOTIFICATION_ID = 388678898; static final int DISABLE_UPDATES_SETTING = 1;