Skip to content

Commit

Permalink
Fix mifareInfo encoding in polling result of Android
Browse files Browse the repository at this point in the history
Signed-off-by: Harry Chen <harry-chen@outlook.com>
  • Loading branch information
Harry-Chen committed Nov 1, 2023
1 parent b47a7aa commit cc5c098
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -581,13 +581,13 @@ class FlutterNfcKitPlugin : FlutterPlugin, MethodCallHandler, ActivityAware {

if (mifareInfo != null) {
with(mifareInfo!!) {
jsonResult.put("mifareInfo", mapOf(
jsonResult.put("mifareInfo", JSONObject(mapOf(
"type" to typeStr,
"size" to size,
"blockSize" to blockSize,
"blockCount" to blockCount,
"sectorCount" to sectorCount
))
)))
}
}

Expand Down

0 comments on commit cc5c098

Please sign in to comment.