commit | 24e3388080ed2ec254197a0ed965dd5f9e6af526 | [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 | 46c21bfe96030d405b62294ab4bb4d3b6317b46a | |
parent | b380466d295c90baf29478cc8b241a354a98e42b [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