From e6cf7e111cb1cede4ef2452badcf147fccf7e7c2 Mon Sep 17 00:00:00 2001 From: TaaviE Date: Sun, 27 Jun 2021 15:41:13 +0300 Subject: [PATCH] Set the class loader to avoid unmarshalling errors --- .../gadgetbridge/devices/pebble/PebblePairingActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/pebble/PebblePairingActivity.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/pebble/PebblePairingActivity.java index a2fdcc109..e5f35d023 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/pebble/PebblePairingActivity.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/pebble/PebblePairingActivity.java @@ -73,7 +73,9 @@ public class PebblePairingActivity extends AbstractGBActivity implements Bonding setContentView(R.layout.activity_pebble_pairing); message = findViewById(R.id.pebble_pair_message); - deviceCandidate = getIntent().getParcelableExtra(DeviceCoordinator.EXTRA_DEVICE_CANDIDATE); + Intent intent = getIntent(); + intent.setExtrasClassLoader(GBDeviceCandidate.class.getClassLoader()); + deviceCandidate = intent.getParcelableExtra(DeviceCoordinator.EXTRA_DEVICE_CANDIDATE); String macAddress = null; if (deviceCandidate != null) {