From a303d71d253f3c8d8e11a585598fafc22f01aec1 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Thu, 2 May 2019 21:51:44 +0200 Subject: [PATCH] scanning = false if no adapter present --- .../plugins/pump/insight/activities/InsightPairingActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/pump/insight/activities/InsightPairingActivity.java b/app/src/main/java/info/nightscout/androidaps/plugins/pump/insight/activities/InsightPairingActivity.java index c165dd140e..13fd698236 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/pump/insight/activities/InsightPairingActivity.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/pump/insight/activities/InsightPairingActivity.java @@ -167,8 +167,8 @@ public class InsightPairingActivity extends AppCompatActivity implements Insight intentFilter.addAction(BluetoothDevice.ACTION_FOUND); registerReceiver(broadcastReceiver, intentFilter); bluetoothAdapter.startDiscovery(); + scanning = true; } - scanning = true; } }