Well, in my project, I added these lines to both my light and dark themes:
android:windowBackground
android:textColorPrimary
android:textColorSecondary
After removing them from the themes, this issue was solved