Do not register the callbacks in the constructor.
Change-Id: Ic7509c35cfb17b022a2af3cc14170942d6510e2d
This commit is contained in:
@@ -441,6 +441,12 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||||||
mTethering.getTetherableBluetoothRegexs().length != 0) &&
|
mTethering.getTetherableBluetoothRegexs().length != 0) &&
|
||||||
mTethering.getUpstreamIfaceRegexs().length != 0);
|
mTethering.getUpstreamIfaceRegexs().length != 0);
|
||||||
|
|
||||||
|
try {
|
||||||
|
nmService.registerObserver(mTethering);
|
||||||
|
} catch (RemoteException e) {
|
||||||
|
loge("Error registering observer :" + e);
|
||||||
|
}
|
||||||
|
|
||||||
if (DBG) {
|
if (DBG) {
|
||||||
mInetLog = new ArrayList();
|
mInetLog = new ArrayList();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user