Bungles
Bungles

Reputation: 2257

Which Android configuration change do I need to ignore to prevent activity destruction/creation when system language changes?

My Vulkan-based game is based on NativeActivity and needs to avoid ALL activity destroy/recreate configuration changes because of the massive amount of load time it takes to do that. I currently have this defined for the activity in AndroidManifest.xml.

android:configChanges="colorMode|density|fontScale|fontWeightAdjustment|grammaticalGender|keyboard|keyboardHidden|layoutDirection|locale|orientation|screenLayout|screenSize|smallestScreenSize|uiMode">

But when the user changes system language my activity is destroyed and re-created. Is there some other (undocumented?) config change I need to declare? How do I prevent activity destruction/recreation for system language changes?

Upvotes: 0

Views: 47

Answers (1)

Gabe Sechan
Gabe Sechan

Reputation: 93698

That would be locale. I also wouldn't worry about it- nobody ever changes locale. Even if they're bilingual, they don't change the locale of the phone to swap languages- they just change the keyboard language. You're talking about a scenario that only a QA person would ever find.

Upvotes: 0

Related Questions