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) {