Stop creating threads for tethering.
Use the passed in looper and save threads. Change-Id: I6db04ef64e339a5fb2b71e9fb1da32e2d600447c
This commit is contained in:
@@ -320,7 +320,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
||||
}
|
||||
}
|
||||
|
||||
mTethering = new Tethering(mContext);
|
||||
mTethering = new Tethering(mContext, mHandler.getLooper());
|
||||
mTetheringConfigValid = (((mNetTrackers[ConnectivityManager.TYPE_MOBILE_DUN] != null) ||
|
||||
!mTethering.isDunRequired()) &&
|
||||
(mTethering.getTetherableUsbRegexs().length != 0 ||
|
||||
|
||||
Reference in New Issue
Block a user