Support widgets under work profile on glanceable hub
Parse user profile from the intent of adding a new widget from the
widget picker.
Pass the user profile when binding a new widget and call the right
API for `appWidgetManager#bindAppWidgetIdIfAllowed`, in order to
associate the user profile with the new widget.
Moved dagger @provides related to communal widget host outside the
repository module/dir into a new module.
Bug: b/324465218
Test: atest CommunalWidgetHostTest
Test: atest CommunalWidgetRepositoryImplTest
Flag: ACONFIG com.android.systemui.communal_hub STAGING
Change-Id: I9563e43db68c063518469690d7c09814c13b92a3
15 files changed