Yalantis / OfficialFoldingTabBar.Android

453 stars 99 forks source link

Error on listeners implementation on Kotlin #8

Closed fpSpindola closed 6 years ago

fpSpindola commented 6 years ago

Hello guys!

I was testing the listeners on Kotlin but I can't call the correct listener When compiled to Kotlin, I only have access to tabBar.onFoldingItemClickListener which is a variable and not a method I can call.

This image shows that I'm acessing an variable and not an method and that is the lib implementation, proving it is an variable. And here are the two methods I can access from tabBar instance.

Also, if I decompile the Java code (here), I can see setOnFoldingItemClickListener and setOnMainButtonClickListener, which receive the Listener as parameter.

It works with Java but I can't use it with Kotlin

Am I doing anything wrong?

Thanks!

fpSpindola commented 6 years ago

This makes no sense at all. Closing