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

Commit 5ec7baf0 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Relax policy for non-dismissible calls

Test: NotificationManagerServiceTest
Test: test app; CallStyle without ongoing flag is dismissible; CallStyle with ongoing flag is not
Fixes: 290684762
Change-Id: Id617ac75595704330fc54ede9d9690eef0fa0bf0
parent d07b761b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
    }
+0 −1
Original line number Diff line number Diff line
@@ -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")