From 1f74c72b4443aa5127b982796ff689992fa3b76a Mon Sep 17 00:00:00 2001 From: Harsh Bhikadia Date: Fri, 18 Jun 2021 17:56:12 +0530 Subject: [PATCH] fix: convert `intent.categories` to `List` `Intent.categories` is `Set` but is not supported by "fluter/dart" --- .../kotlin/com/bhikadia/receive_intent/ReceiveIntentPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/kotlin/com/bhikadia/receive_intent/ReceiveIntentPlugin.kt b/android/src/main/kotlin/com/bhikadia/receive_intent/ReceiveIntentPlugin.kt index eb971d3..5a1296b 100644 --- a/android/src/main/kotlin/com/bhikadia/receive_intent/ReceiveIntentPlugin.kt +++ b/android/src/main/kotlin/com/bhikadia/receive_intent/ReceiveIntentPlugin.kt @@ -42,7 +42,7 @@ class ReceiveIntentPlugin : FlutterPlugin, MethodCallHandler, EventChannel.Strea "fromSignatures" to fromPackageName?.let { getApplicationSignature(context, it) }, "action" to intent.action, "data" to intent.dataString, - "categories" to intent.categories, + "categories" to intent.categories.toList(), "extra" to intent.extras?.let { bundleToJSON(it).toString() } ) //Log.e("ReceiveIntentPlugin", "intentMap: $intentMap")