Hi, how in Android Studio I can generate implement...
# android
d
Hi, how in Android Studio I can generate implementation of superclass members with(!) automatically delegating to specific field of the class? I want implement simple delegation pattern, but don't want write it manually. Maybe some plugin for Android Studio? Ask here because initially I decided use Kotlin and its implementation by delegation but then I had to refuse it 🙂
g
Why kotlin delegation doesn't work for your case? Maybe you could provide some example
d
Because Kotlin makes delegate as final and I can't change it on the fly, but I want. Don't ask why 🙂
Eventually I found next workaround: implemented it with kotlin delegation, then decompiled kotlin code into java code, copied all generated methods and did one string replace operation. That is all