1
0
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:
TaaviE 2021-06-27 15:41:13 +03:00 committed by Gitea
parent ad7fc6c5d0
commit e6cf7e111c

View File

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