From 824784fd430535d4bc9f35f5e83a0294672fad27 Mon Sep 17 00:00:00 2001 From: TaaviE Date: Wed, 7 Oct 2020 17:59:21 +0300 Subject: [PATCH] Enhanced logging in BondingUtil --- .../nodomain/freeyourgadget/gadgetbridge/util/BondingUtil.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/BondingUtil.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/BondingUtil.java index 8622aa6a0..8df8a8f3c 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/BondingUtil.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/BondingUtil.java @@ -277,7 +277,9 @@ public class BondingUtil { .build(); CompanionDeviceManager manager = (CompanionDeviceManager) bondingInterface.getContext().getSystemService(Context.COMPANION_DEVICE_SERVICE); + LOG.debug(String.format("Searching for %s associations", deviceCandidate.getMacAddress())); for (String association : manager.getAssociations()) { + LOG.debug(String.format("Already associated with: %s", association)); if (association.equals(deviceCandidate.getMacAddress())) { LOG.info("The device has already been bonded through CompanionDeviceManager, using regular"); // If it's already "associated", we should immediately pair @@ -287,6 +289,7 @@ public class BondingUtil { } } + LOG.debug("Starting association request"); manager.associate(pairingRequest, getCompanionDeviceManagerCallback(bondingInterface), null);