altosdroid: whitespace
authorMike Beattie <mike@ethernal.org>
Sun, 26 Aug 2012 02:55:19 +0000 (14:55 +1200)
committerMike Beattie <mike@ethernal.org>
Sun, 26 Aug 2012 02:55:19 +0000 (14:55 +1200)
Signed-off-by: Mike Beattie <mike@ethernal.org>
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();