commit | 54fdd61d0ca2e887b62c4a822bbdb44fe2d43a2a | [log] [tgz] |
---|---|---|
author | paulhu <paulhu@google.com> | Tue Jan 19 14:45:35 2021 +0800 |
committer | paulhu <paulhu@google.com> | Thu Jan 21 01:19:09 2021 +0800 |
tree | f15230de8d698cb20c37cbc00f9dc6e86847e160 | |
parent | bf49c1948a66aeef93e4f6ba22adb3503a3c2af1 [diff] |
Replace Context @hide API in MultinetworkPolicyTracker MultinetworkPolicyTracker is part of Connectivity mainline module which cannot call @hide API Context#registerReceiverAsUser. Thus, replace it to Context#registerReceiverForAllUsers. Bug: 170634463 Test: atest FrameworksNetTests Test: Manully check that receiving intent and unregistering receiver can work normally. Change-Id: Ie22a3aa40bc9243082672a64dba7c7940f9ff21a