Decouple enabling of tethering with SDP record.

Change-Id: I50781bab52b28d7b3fe750fb055ffaeac5baf360
This commit is contained in:
Jaikumar Ganesh
2010-09-02 12:11:06 -07:00
parent 86624a2154
commit d2bed6935f

View File

@@ -433,8 +433,7 @@ public class TetherSettings extends PreferenceActivity {
mBluetoothSettings.setEnabled(true); mBluetoothSettings.setEnabled(true);
} }
mBluetoothPan.setBluetoothTethering(true, mBluetoothPan.setBluetoothTethering(true);
BluetoothPan.NAP_ROLE, BluetoothPan.NAP_BRIDGE);
mBluetoothTether.setSummary(R.string.bluetooth_tethering_available_subtext); mBluetoothTether.setSummary(R.string.bluetooth_tethering_available_subtext);
} else { } else {
boolean errored = false; boolean errored = false;
@@ -448,9 +447,7 @@ public class TetherSettings extends PreferenceActivity {
errored = true; errored = true;
} }
mBluetoothPan.setBluetoothTethering(false, mBluetoothPan.setBluetoothTethering(false);
BluetoothPan.NAP_ROLE, BluetoothPan.NAP_BRIDGE);
mBluetoothSettings.setEnabled(false); mBluetoothSettings.setEnabled(false);
if (errored) { if (errored) {
mBluetoothTether.setSummary(R.string.bluetooth_tethering_errored_subtext); mBluetoothTether.setSummary(R.string.bluetooth_tethering_errored_subtext);