Loading android/app/src/com/android/bluetooth/pan/BluetoothTetheringNetworkFactory.java +1 −1 Original line number Diff line number Diff line Loading @@ -236,7 +236,7 @@ public class BluetoothTetheringNetworkFactory extends NetworkFactory { } onCancelRequest(); setScoreFilter(-1); unregister(); terminate(); } private void initNetworkCapabilities() { Loading android/app/src/com/android/bluetooth/pan/PanService.java +7 −3 Original line number Diff line number Diff line Loading @@ -79,6 +79,7 @@ public class PanService extends ProfileService { private boolean mTetherOn = false; private BluetoothTetheringNetworkFactory mNetworkFactory; private boolean mStarted = false; static { Loading Loading @@ -124,9 +125,8 @@ public class PanService extends ProfileService { mUserManager = (UserManager) getSystemService(Context.USER_SERVICE); mNetworkFactory = new BluetoothTetheringNetworkFactory(getBaseContext(), getMainLooper(), this); setPanService(this); mStarted = true; return true; } Loading Loading @@ -605,14 +605,18 @@ public class PanService extends ProfileService { mNapIfaceAddr = null; } } } else if (mNetworkFactory != null) { } else if (mStarted) { // PANU Role = reverse Tether Log.d(TAG, "handlePanDeviceStateChange LOCAL_PANU_ROLE:REMOTE_NAP_ROLE state = " + state + ", prevState = " + prevState); if (state == BluetoothProfile.STATE_CONNECTED) { mNetworkFactory = new BluetoothTetheringNetworkFactory( getBaseContext(), getMainLooper(), this); mNetworkFactory.startReverseTether(iface); } else if (state == BluetoothProfile.STATE_DISCONNECTED) { mNetworkFactory.stopReverseTether(); mNetworkFactory = null; mPanDevices.remove(device); } } Loading Loading
android/app/src/com/android/bluetooth/pan/BluetoothTetheringNetworkFactory.java +1 −1 Original line number Diff line number Diff line Loading @@ -236,7 +236,7 @@ public class BluetoothTetheringNetworkFactory extends NetworkFactory { } onCancelRequest(); setScoreFilter(-1); unregister(); terminate(); } private void initNetworkCapabilities() { Loading
android/app/src/com/android/bluetooth/pan/PanService.java +7 −3 Original line number Diff line number Diff line Loading @@ -79,6 +79,7 @@ public class PanService extends ProfileService { private boolean mTetherOn = false; private BluetoothTetheringNetworkFactory mNetworkFactory; private boolean mStarted = false; static { Loading Loading @@ -124,9 +125,8 @@ public class PanService extends ProfileService { mUserManager = (UserManager) getSystemService(Context.USER_SERVICE); mNetworkFactory = new BluetoothTetheringNetworkFactory(getBaseContext(), getMainLooper(), this); setPanService(this); mStarted = true; return true; } Loading Loading @@ -605,14 +605,18 @@ public class PanService extends ProfileService { mNapIfaceAddr = null; } } } else if (mNetworkFactory != null) { } else if (mStarted) { // PANU Role = reverse Tether Log.d(TAG, "handlePanDeviceStateChange LOCAL_PANU_ROLE:REMOTE_NAP_ROLE state = " + state + ", prevState = " + prevState); if (state == BluetoothProfile.STATE_CONNECTED) { mNetworkFactory = new BluetoothTetheringNetworkFactory( getBaseContext(), getMainLooper(), this); mNetworkFactory.startReverseTether(iface); } else if (state == BluetoothProfile.STATE_DISCONNECTED) { mNetworkFactory.stopReverseTether(); mNetworkFactory = null; mPanDevices.remove(device); } } Loading