altosdroid: whitespace
[fw/altos] / altosdroid / src / org / altusmetrum / AltosDroid / AltosDroid.java
index c18a73f8044966f9816988ee32d4a53089bcd958..5b48d5710d73d17f8a13600d0f2f5569785a376b 100644 (file)
@@ -86,8 +86,6 @@ public class AltosDroid extends Activity {
                setContentView(R.layout.main);
                getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title);
 
-        // Get local Bluetooth adapter
-        mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
                // Set up the custom title
                mTitle = (TextView) findViewById(R.id.title_left_text);
                mTitle.setText(R.string.app_name);
@@ -98,6 +96,9 @@ public class AltosDroid extends Activity {
                mSerialView.setClickable(false);
                mSerialView.setLongClickable(false);
 
+               // Get local Bluetooth adapter
+               mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
+
                // If the adapter is null, then Bluetooth is not supported
                if (mBluetoothAdapter == null) {
                        Toast.makeText(this, "Bluetooth is not available", Toast.LENGTH_LONG).show();