1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-30 14:02:56 +01:00

Stop discovery when attempting to pair #33

This commit is contained in:
cpfeiffer 2015-05-10 21:35:31 +02:00
parent 095ada8e5d
commit b25da80656

View File

@ -306,6 +306,7 @@ public class DiscoveryActivity extends Activity implements AdapterView.OnItemCli
return; return;
} }
stopDiscovery();
DeviceCoordinator coordinator = DeviceHelper.getInstance().getCoordinator(deviceCandidate); DeviceCoordinator coordinator = DeviceHelper.getInstance().getCoordinator(deviceCandidate);
Class<? extends Activity> pairingActivity = coordinator.getPairingActivity(); Class<? extends Activity> pairingActivity = coordinator.getPairingActivity();
if (pairingActivity != null) { if (pairingActivity != null) {