Merge "Do not register the callbacks in the constructor." am: ab2c05370e

Original change: undetermined

Change-Id: I1adadc9d0f203dd023c840c3c74c4b830dc8c03a
This commit is contained in:
Chia-chi Yeh
2021-05-31 04:22:58 +00:00
committed by Automerger Merge Worker

View File

@@ -458,6 +458,12 @@ public class ConnectivityService extends IConnectivityManager.Stub {
mTethering.getTetherableBluetoothRegexs().length != 0) &&
mTethering.getUpstreamIfaceRegexs().length != 0);
try {
nmService.registerObserver(mTethering);
} catch (RemoteException e) {
loge("Error registering observer :" + e);
}
if (DBG) {
mInetLog = new ArrayList();
}