diff --git a/packages/reactive_ble_mobile/android/src/main/kotlin/com/signify/hue/flutterreactiveble/channelhandlers/RestoredDeviceHandler.kt b/packages/reactive_ble_mobile/android/src/main/kotlin/com/signify/hue/flutterreactiveble/channelhandlers/RestoredDeviceHandler.kt index 699b62f6..6da142d6 100644 --- a/packages/reactive_ble_mobile/android/src/main/kotlin/com/signify/hue/flutterreactiveble/channelhandlers/RestoredDeviceHandler.kt +++ b/packages/reactive_ble_mobile/android/src/main/kotlin/com/signify/hue/flutterreactiveble/channelhandlers/RestoredDeviceHandler.kt @@ -3,7 +3,7 @@ package com.signify.hue.flutterreactiveble.channelhandlers import io.flutter.plugin.common.EventChannel import com.signify.hue.flutterreactiveble.ProtobufModel as pb -class RestoredDeviceHandler() : EventChannel.StreamHandler { +class RestoredDeviceHandler : EventChannel.StreamHandler { private var sink: EventChannel.EventSink? = null override fun onListen( @@ -16,10 +16,9 @@ class RestoredDeviceHandler() : EventChannel.StreamHandler { val message = pb.RestoredDeviceInfoCollection.newBuilder().build() eventSink.success(message.toByteArray()) } - } override fun onCancel(objectSink: Any?) { sink = null } -} \ No newline at end of file +}