Using Android Studio, when I type the name of a class which I have no import for and use the "Import class" action (using either ALT-ENTER or choosing the "Import class" action from the CTRL-A menu), it simply adds the package name in front of my class.
For example,
Intent i = new Intent(Intent.ACTION_SEND);
becomes
android.content.Intent i = new Intent(Intent.ACTION_SEND);
Is there any way to have the "Import class" action add an import to the file by default instead of adding the fully qualified name like this?
I am quite certain it used to work as I describe. Unfortunately, I cannot tell what changed since then and I would like to avoid reinstalling the IDE and reconfiguring everything to my liking.
My configuration
In the Intentions settings, the option "Imports / Replace Qualified Name with Import" is checked.
In the Editor settings, the "Add unambiguous imports on the fly" option is unchecked and "Optimize imports on the fly" is checked