DO NOT MERGE Fix bubbles for workprofile
- use getPackageManagerForUser when looking up app info
- use the userId on the bubble, not the currentUserId from
BubbleController when writing to XML as the currentUserId
in BubbleController does not account for workprofile.
Test: atest SystemUITests
Test: atest BubbleControllerTest
Test: - have a managed work profile
- install the bubbles app *only* for the work profile
- make some bubbles
=> Notice bubbles appear
- dismiss all the bubbles
- restart the device, add a bubble
- open the bubble, navigate to the bubble overflow
=> notice the previously dismissed workprofile bubbles
are in the overflow
Bug: 184041127
Change-Id: Iefc4e4e80a569a4f3b4ac3b8a1268de1b475409b
5 files changed