EdwardvanRaak / MaterialBarcodeScanner

Easy to use barcode reader for your Android Project (Uses Google Mobile Vision API)
Apache License 2.0
273 stars 113 forks source link

giving EventBus error #34

Open demo-Ashif opened 7 years ago

demo-Ashif commented 7 years ago

Could not dispatch event: class com.google.android.gms.vision.barcode.Barcode to subscribing class class com.edwardvanraak.materialbarcodescanner.MaterialBarcodeScanner java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState

Always giving this error after onResult when am wanting to show DialogFragment. Testing in Nexus 6 device.

AllanWang commented 7 years ago

If you are using proguard, you need to keep the event classes that are only referenced through annotations. See issue #35