Disable widgets for stopped packages

Disable widgets whose package has been stopped (PACKAGE_RESTARTED
broadcast). Widgets in this state show the same UI as widgets that are
disabled due to a paused profile or suspended package.

Clicking the disabled UI will send an APPWIDGET_UPDATE broadcast to the
provider, which will also restart the stopped package. The package can
also be started by resizing the disabled widget, or clicking the app
icon.

Bug: 329156796
Test: manual - force close app and check for UI
Flag: ACONFIG android.content.pm.stay_stopped NEXTFOOD
Change-Id: Ie2411fce82d3ec6a0a70973f7a789f5dce268d04
1 file changed