summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Pavel Grafov <pgrafov@google.com> 2023-03-13 18:13:12 +0000
committer Pavel Grafov <pgrafov@google.com> 2023-03-21 10:42:06 +0000
commitf70a8af0c801b0363773f446b9d08c9392af6c78 (patch)
tree498b8ad436a333312f00daf5695fc137914829e7 /libs/androidfw/FileStream.cpp
parent2cbedeb0d776cbc6527edfffdba498906c4af4c6 (diff)
Use fg broadcast for pkg suspension and quiet mode
When quiet mode is enabled or disabled via QS tile, launcher must refresh whether the icons are grayed out. Conversely, QS tile must be updated when quiet mode is toggled via Launcher. This depends on a background broadcast and can be very unresponsive especially after a reboot. This CL makes this broadcast into a foreground one so that the UI is updated immediately. When quiet mode is disabled, work packages get unsuspended, but launcher won't update the icons until it receives ACTION_PACKAGES_UNSUSPENDED. To make this resposive too that broadcast is also made foreground. Strictly speaking there is no necessity to make ACTION_PACKAGES_SUSPENSION_CHANGED into a foreground broadcast for these issues but it is delivered to an activity which shows the suspension dialog and is quite useless if delayed, so I made it foreground to keep code simpler. These broadcasts are only delivered to registered receivers and are not of iterest to any apps except very few (Launcher, SysUI, DWB). Bug: 271818888 Bug: 269595559 Test: manual, device_config put device_policy_manager enable_keep_profiles_running true Change-Id: I9c1271020dff3775f78b2f0db305f4c3f7d2d068
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions