Dmitry Khasanov

02/26/2019, 12:37 PM
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 🙂


02/26/2019, 12:41 PM
Why kotlin delegation doesn't work for your case? Maybe you could provide some example

Dmitry Khasanov

02/26/2019, 12:49 PM
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