Error:(55, 41) Kotlin: Type inference failed. Expected type mismatch

My problem wasn’t that the line with the error was missing. My problem was that you posted about 100 lines of code for something that only requires about 2-3 at max. This means I or anyone else who wants to help you first has to filter out all the unnecessary information.
I’m glad you got your answer, but maybe next time you could try to only post the necessary code and use the code formatting :smiley: