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

Commit a16a4e57 authored by Pavel Grafov's avatar Pavel Grafov Committed by Automerger Merge Worker
Browse files

Merge "Don't cancel notifications when pausing work apps" into udc-dev am: 7c966b0c

parents abfb6795 7c966b0c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1843,7 +1843,7 @@ public class NotificationManagerService extends SystemService {
                }
                }
            } else if (action.equals(Intent.ACTION_MANAGED_PROFILE_UNAVAILABLE)) {
            } else if (action.equals(Intent.ACTION_MANAGED_PROFILE_UNAVAILABLE)) {
                int userHandle = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, -1);
                int userHandle = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, -1);
                if (userHandle >= 0) {
                if (userHandle >= 0 && !mDpm.isKeepProfilesRunningEnabled()) {
                    cancelAllNotificationsInt(MY_UID, MY_PID, null, null, 0, 0, true, userHandle,
                    cancelAllNotificationsInt(MY_UID, MY_PID, null, null, 0, 0, true, userHandle,
                            REASON_PROFILE_TURNED_OFF, null);
                            REASON_PROFILE_TURNED_OFF, null);
                    mSnoozeHelper.clearData(userHandle);
                    mSnoozeHelper.clearData(userHandle);