diff --git a/packages/reactive_ble_mobile/android/src/main/kotlin/com/signify/hue/flutterreactiveble/PluginController.kt b/packages/reactive_ble_mobile/android/src/main/kotlin/com/signify/hue/flutterreactiveble/PluginController.kt index dfe1c44e..8fa4d89a 100644 --- a/packages/reactive_ble_mobile/android/src/main/kotlin/com/signify/hue/flutterreactiveble/PluginController.kt +++ b/packages/reactive_ble_mobile/android/src/main/kotlin/com/signify/hue/flutterreactiveble/PluginController.kt @@ -19,13 +19,14 @@ import io.flutter.plugin.common.BinaryMessenger import io.flutter.plugin.common.EventChannel import io.flutter.plugin.common.MethodCall import io.flutter.plugin.common.MethodChannel.Result +import io.flutter.plugin.common.PluginRegistry.ActivityResultListener import io.reactivex.Single import io.reactivex.android.schedulers.AndroidSchedulers import java.util.UUID import com.signify.hue.flutterreactiveble.ProtobufModel as pb @Suppress("TooManyFunctions") -class PluginController { +class PluginController : ActivityResultListener { private val pluginMethods = mapOf Unit>( "initialize" to this::initializeClient, diff --git a/packages/reactive_ble_mobile/android/src/main/kotlin/com/signify/hue/flutterreactiveble/channelhandlers/CompanionHandler.kt b/packages/reactive_ble_mobile/android/src/main/kotlin/com/signify/hue/flutterreactiveble/channelhandlers/CompanionHandler.kt index 9d47daa5..3f1bd92f 100644 --- a/packages/reactive_ble_mobile/android/src/main/kotlin/com/signify/hue/flutterreactiveble/channelhandlers/CompanionHandler.kt +++ b/packages/reactive_ble_mobile/android/src/main/kotlin/com/signify/hue/flutterreactiveble/channelhandlers/CompanionHandler.kt @@ -110,7 +110,6 @@ class CompanionHandler { } override fun onFailure(error: CharSequence?) { - Log.e(TAG, "onFailure: $error") result.error("CompanionHandler", error.toString(), null) } },