feat: added QrScript support for templates

This commit is contained in:
2026-06-23 20:54:58 +03:00
parent d702928c28
commit e8b572bf9a
8 changed files with 70 additions and 8 deletions
@@ -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)
}
}