eygraber
07/11/2019, 2:45 AMNon-applicable call for builder inferenceand it occurs on the line that starts with
channel.send
override val animationProgressChannel: ReceiveChannel<Float> = resumeScope.produce {
lottieAnimation.addAnimatorUpdateListener { animation ->
resumeScope.launch {
channel.send(animation.animatedValue as Float) // Non-applicable call for builder inference (channel is highlighted)
}
}
}
If I change it to resumeScope.produce<Float>
the warning goes away, but the IDE suggests that I "remove the explicit type arguments". Anyone know what's up with that?Ryan Mentley
07/11/2019, 3:09 AMgildor
07/11/2019, 3:39 AMremove the explicit type argumentsIs not a warning, just a suggestion from IDE that you can remove explicit type because it inferred already from return type of the function
eygraber
07/11/2019, 4:46 AMchannel.send...
). I'll highlight it as welllouiscad
07/11/2019, 6:07 AMgildor
07/11/2019, 6:44 AMRyan Mentley
07/11/2019, 7:44 AMeygraber
07/16/2019, 2:31 AM