user3440686
user3440686

Reputation: 21

If Orientation changes on android device my app language is changing by default language. Help me

If I change my device orientation my app language also changed as default language on oreo+ version. Language not changing on 8+. Help me.

Upvotes: 0

Views: 216

Answers (1)

matdev
matdev

Reputation: 4283

You should call your method

updateResources(Context context, String language) 

in your activity or fragment's onResume()

The onResume() method is called when screen orientation changes, hence your texts will be written in the given locale.

Upvotes: 2

Related Questions