Julian Steenbakker
Committed by GitHub

Merge pull request #83 from towaanu/master

fix exception with adresses when scanning ContactInfo qrcode
@@ -283,7 +283,7 @@ class MobileScanner(private val activity: Activity, private val textureRegistry: @@ -283,7 +283,7 @@ class MobileScanner(private val activity: Activity, private val textureRegistry:
283 "title" to title, "urls" to urls) 283 "title" to title, "urls" to urls)
284 284
285 private val Barcode.Address.data: Map<String, Any?> 285 private val Barcode.Address.data: Map<String, Any?>
286 - get() = mapOf("addressLines" to addressLines, "type" to type) 286 + get() = mapOf("addressLines" to addressLines.map { addressLine -> addressLine.toString() }, "type" to type)
287 287
288 private val Barcode.PersonName.data: Map<String, Any?> 288 private val Barcode.PersonName.data: Map<String, Any?>
289 get() = mapOf("first" to first, "formattedName" to formattedName, "last" to last, 289 get() = mapOf("first" to first, "formattedName" to formattedName, "last" to last,