The compiler automatically converts old Android Support references to AndroidX references, when possible.
So if it is working for you, and assuming that you are not using a very old SDK (you can see it in the compilation output), then you don't need to worry about it.