Reputation: 1928
I'm trying to move a Kotlin interface method to another existing interface, by refactoring. But a can't find the right option in Android Studio. Is there a way to do that?
Upvotes: 0
Views: 351
Reputation: 631
@Lore, We can do that, with following steps. But with this, it seems like the newly created interface
implements the existing one. So, we just have to delete that implementation in the new interface
file.
Select function -> Refactor -> Extract -> Interface... -> Extract to separate file -> Check Move
Upvotes: 1