Relax policy for non-dismissible calls am: 5ec7baf068 am: b0361e1411

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24019388

Change-Id: Ie5c4ff4c4c80d946a797bee3ad533c9d5da49311
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Julia Reynolds
2023-07-11 20:22:19 +00:00
committed by Automerger Merge Worker
2 changed files with 1 additions and 2 deletions

View File

@@ -7005,7 +7005,7 @@ public class NotificationManagerService extends SystemService {
*/
private boolean canBeNonDismissible(ApplicationInfo ai, Notification notification) {
return notification.isMediaNotification() || isEnterpriseExempted(ai)
|| isCallNotification(ai.packageName, ai.uid, notification)
|| notification.isStyle(Notification.CallStyle.class)
|| isDefaultSearchSelectorPackage(ai.packageName);
}

View File

@@ -11210,7 +11210,6 @@ public class NotificationManagerServiceTest extends UiServiceTestCase {
// Given: a call notification has the flag FLAG_ONGOING_EVENT set
// feature flag: ALLOW_DISMISS_ONGOING is on
mTestFlagResolver.setFlagOverride(ALLOW_DISMISS_ONGOING, true);
when(mTelecomManager.isInManagedCall()).thenReturn(true);
Person person = new Person.Builder()
.setName("caller")