Closed mhespenh closed 8 years ago
Well, that's embarrassing. Good catch, I'll post an updated release with a fix for this soon.
I should have noted- I'm not sure what intent.getStringExtra()
will return if claiming failed, so !deviceId.equals(null)
might not actually be the correct check.
@mhespenh thank you! btw, pull requests are welcome.
ETA: Version 0.3.0
In ParticleDeviceSetupLibrary.java:72, the intent extra
EXTRA_CONFIGURED_DEVICE_ID
is treated as a Long:According to SuccessActivity.java:114 it is added to the intent as a String.
This causes a Java type-conversion failure and always returns 0 (the default value of
getLongExtra()
thanks toerrorValue
), and hence failureEasy fix (works fine for me) replace ParticleDeviceSetupLibrary:71-80: