fix: handleIntent
: null check added for Intent.categories
This commit is contained in:
parent
ad5fd028ad
commit
05a1c3db09
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class ReceiveIntentPlugin : FlutterPlugin, MethodCallHandler, EventChannel.Strea
|
||||||
"fromSignatures" to fromPackageName?.let { getApplicationSignature(context, it) },
|
"fromSignatures" to fromPackageName?.let { getApplicationSignature(context, it) },
|
||||||
"action" to intent.action,
|
"action" to intent.action,
|
||||||
"data" to intent.dataString,
|
"data" to intent.dataString,
|
||||||
"categories" to intent.categories.toList(),
|
"categories" to intent.categories?.toList(),
|
||||||
"extra" to intent.extras?.let { bundleToJSON(it).toString() }
|
"extra" to intent.extras?.let { bundleToJSON(it).toString() }
|
||||||
)
|
)
|
||||||
//Log.e("ReceiveIntentPlugin", "intentMap: $intentMap")
|
//Log.e("ReceiveIntentPlugin", "intentMap: $intentMap")
|
||||||
|
|
Loading…
Reference in a new issue