Correct the calling method in removeDefaultNetworkActiveListener
The removeDefaultNetworkActiveListener should do the unregisteration but it's incorrectly calling registerNetworkActivityListener into the ConnectivityService. Bug: 199753782 Test: atest FrameworksNetTests CtsNetTestCases Change-Id: I65a2ddc82989d736316d51f5058e707f5b261a82
This commit is contained in:
parent
d525a64ead
commit
e54c8199aa
1 changed files with 1 additions and 1 deletions
|
|
@ -2369,7 +2369,7 @@ public class ConnectivityManager {
|
|||
throw new IllegalArgumentException("Listener was not registered.");
|
||||
}
|
||||
try {
|
||||
mService.registerNetworkActivityListener(rl);
|
||||
mService.unregisterNetworkActivityListener(rl);
|
||||
} catch (RemoteException e) {
|
||||
throw e.rethrowFromSystemServer();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue