Search code examples
javaandroidandroid-studiointellij-ideaintellij-14

Android Studio - Refactor move files still keeps a copy in original place


In visual Studio when I move files into a package on the same original level, the files that I move also remain where they were.

Picture

I dragged each of these Kotlin files (AddHappyPlaceActivity and MainActivity) into the "activities" package, then pressed refactor in the screen that appears. I would expect the original files to not appear.

Thanks a lot.


Solution

  • Posting an answer is because I don't have enough reputation. after refactoring the file actually moves there but it is bug I also have noticed, A copy of the file seems to be present in the old places even after refactoring but after refreshing It is gone.