From e13b833b21342d80ef940783acba4b3eecfce968 Mon Sep 17 00:00:00 2001 From: Chalard Jean Date: Mon, 5 Jun 2023 18:47:42 +0900 Subject: [PATCH] Allow firing the LOST_INTERNET intent immediately in config When config_notifyNoInternetAsDialogWhenHighPriority is on, the LOST_INTERNET notification intent should be fired immediately rather than as a pending intent. Bug: 281970908 Test: Improve test for this in NetworkNotificationManagerTest Change-Id: I88565839a12a1ab4b096f763250944ebaf6c5349 --- .../res/values/config.xml | 15 ++-- .../NetworkNotificationManager.java | 6 +- .../NetworkNotificationManagerTest.java | 68 ++++++++++++++----- 3 files changed, 67 insertions(+), 22 deletions(-) diff --git a/service/ServiceConnectivityResources/res/values/config.xml b/service/ServiceConnectivityResources/res/values/config.xml index 22d9b01b0f..f30abc6b0b 100644 --- a/service/ServiceConnectivityResources/res/values/config.xml +++ b/service/ServiceConnectivityResources/res/values/config.xml @@ -135,10 +135,17 @@ true - + false