Fix the message when Bluetooth is turning off while on the tethering menu.
Currently says "Turning Wifi off..." This change will display "Turning Bluetooth off..." instead. Change-Id: I697d19ca4d7a69cc6b3729ad09fcf38bf5ab2427 Signed-off-by: Ryan Baxter <rbryanbaxter@gmail.com>
This commit is contained in:
@@ -388,7 +388,7 @@ public class TetherSettings extends SettingsPreferenceFragment
|
|||||||
int btState = adapter.getState();
|
int btState = adapter.getState();
|
||||||
if (btState == BluetoothAdapter.STATE_TURNING_OFF) {
|
if (btState == BluetoothAdapter.STATE_TURNING_OFF) {
|
||||||
mBluetoothTether.setEnabled(false);
|
mBluetoothTether.setEnabled(false);
|
||||||
mBluetoothTether.setSummary(R.string.wifi_stopping);
|
mBluetoothTether.setSummary(R.string.bluetooth_turning_off);
|
||||||
} else if (btState == BluetoothAdapter.STATE_TURNING_ON) {
|
} else if (btState == BluetoothAdapter.STATE_TURNING_ON) {
|
||||||
mBluetoothTether.setEnabled(false);
|
mBluetoothTether.setEnabled(false);
|
||||||
mBluetoothTether.setSummary(R.string.bluetooth_turning_on);
|
mBluetoothTether.setSummary(R.string.bluetooth_turning_on);
|
||||||
|
Reference in New Issue
Block a user