mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-04 09:17:29 +01:00
Set the class loader to avoid unmarshalling errors
This commit is contained in:
parent
ad7fc6c5d0
commit
e6cf7e111c
@ -73,7 +73,9 @@ public class PebblePairingActivity extends AbstractGBActivity implements Bonding
|
|||||||
setContentView(R.layout.activity_pebble_pairing);
|
setContentView(R.layout.activity_pebble_pairing);
|
||||||
|
|
||||||
message = findViewById(R.id.pebble_pair_message);
|
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;
|
String macAddress = null;
|
||||||
if (deviceCandidate != null) {
|
if (deviceCandidate != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user