Unfortunately, Android Studio doesn't have an option/setting to disable this. It assumes that once you refactor a file, you want to take a look at the result and thus opens it in the editor.