When I write a lambda expression in Android studio, it sometimes turns itself into a normal anonymous class, and I can't bring it back. How can I prevent the IDE from doing this? And what is the cause?
If I click on the green highlighted area:
It turns into this:
And there is no way to bring it back. CTRL+Z does not help. I also noticed that this happens on certain actions done within the lambda expression. For example, I just deleted some code inside of it and this happened. This happens all the time.
I read that lambda expressions are not yet supported, and I guess that the IDE is just "simulating" a lambda expression. But I still want to prevent it from changing my code.