altosdroid: Fix a pile of compile warnings
[fw/altos] / altosdroid / app / src / main / java / org / altusmetrum / AltosDroid / DeviceListActivity.java
index 5a76d52d1af529f28bd16fd2ff63d2489b233258..1c3e1dbab21019bd9bfa82423e820a2129720c00 100644 (file)
@@ -59,7 +59,6 @@ public class DeviceListActivity extends Activity {
                super.onCreate(savedInstanceState);
 
                // Setup the window
                super.onCreate(savedInstanceState);
 
                // Setup the window
-               requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
                setContentView(R.layout.device_list);
 
                // Set result CANCELED incase the user backs out
                setContentView(R.layout.device_list);
 
                // Set result CANCELED incase the user backs out
@@ -136,7 +135,6 @@ public class DeviceListActivity extends Activity {
                AltosDebug.debug("doDiscovery()");
 
                // Indicate scanning in the title
                AltosDebug.debug("doDiscovery()");
 
                // Indicate scanning in the title
-               setProgressBarIndeterminateVisibility(true);
                setTitle(R.string.scanning);
 
                // Turn on sub-title for new devices
                setTitle(R.string.scanning);
 
                // Turn on sub-title for new devices
@@ -208,7 +206,6 @@ public class DeviceListActivity extends Activity {
                        /* When discovery is finished, change the Activity title
                         */
                        } else if (BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals(action)) {
                        /* When discovery is finished, change the Activity title
                         */
                        } else if (BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals(action)) {
-                               setProgressBarIndeterminateVisibility(false);
                                setTitle(R.string.select_device);
                                if (mNewDevicesArrayAdapter.getCount() == 0) {
                                        String noDevices = getResources().getText(R.string.none_found).toString();
                                setTitle(R.string.select_device);
                                if (mNewDevicesArrayAdapter.getCount() == 0) {
                                        String noDevices = getResources().getText(R.string.none_found).toString();