Loading src/com/android/settings/bluetooth/BluetoothSettings.java +8 −1 Original line number Diff line number Diff line Loading @@ -98,10 +98,17 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem private final BroadcastReceiver mReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); final String action = intent.getAction(); final int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR); if (action.equals(BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED)) { updateDeviceName(context); } if (state == BluetoothAdapter.STATE_ON) { mInitiateDiscoverable = true; } } private void updateDeviceName(Context context) { Loading Loading
src/com/android/settings/bluetooth/BluetoothSettings.java +8 −1 Original line number Diff line number Diff line Loading @@ -98,10 +98,17 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem private final BroadcastReceiver mReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); final String action = intent.getAction(); final int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR); if (action.equals(BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED)) { updateDeviceName(context); } if (state == BluetoothAdapter.STATE_ON) { mInitiateDiscoverable = true; } } private void updateDeviceName(Context context) { Loading