forked from omni/OmniCards
feat: added QrScript support for templates
This commit is contained in:
@@ -125,9 +125,11 @@ fun CardEditable(
|
||||
contract = ActivityResultContracts.StartActivityForResult()
|
||||
) { result ->
|
||||
if (result.resultCode == Activity.RESULT_OK) {
|
||||
val codeValue = result.data?.getStringExtra("codeValue") ?: ""
|
||||
val codeValue = result.data?.getStringExtra("codeValue")!!
|
||||
val codeType = BarcodeFormat.valueOf(result.data?.getStringExtra("codeType")!!)
|
||||
|
||||
onCodeValueChange(codeValue)
|
||||
onCodeTypeChange(codeType)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user