Skip to content
Commit 1075d519 authored by Pavel Grafov's avatar Pavel Grafov
Browse files

Don't cancel notifications when pausing work apps

Previously when the profile was turned off, all apps were killed, so it
made sense to cancel all the notifications after that. If the profile is
kept running, and suspension is used instead, there is no need to cancel
the notifications, because they'll be hidden for suspended apps anyway.
Also, if the notification gets cancelled, it is possible that the user
will never see it, especially when the profile is paused by schedule.
This CL makes the behavior consistent with focus mode - when the profile
gets unpaused, all work notifications reappear, those that existed
before the profile was paused and those that were posted while it was
paused.

Bug: 285129642
Test: manual with Telegram messenger
Change-Id: I45bfa87c36478237d04375a51473b35ec7704e0b
parent 43fb288e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment