Use startActivityAsUser instead of startActivity
in AvailableNetworkNotifier.
Other classes like WifiNetworkFactory are currently
using startActivityAsUser. This method should
allow us to start the activity for the proper user.
Bug: 281563266
Test: atest AvailableNetworkNotifierTest \
OpenNetworkNotifierTest
Test: Manual Test
1. Switch to secondary user.
2. Reset the network stack. This causes
the notification to appear.
3. Click the notification. Wifi settings
menu is expected to open for the
current user.
Change-Id: I2b7a56dd8d0ba615f233420fa76dcb612e6b74a4
2 files changed