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
Loading
Please register or sign in to comment