You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same problem here.
stringResource is not updated correctly from api 24 to 33 when config change triggered (LocalConfiguration.current not updated...)
To manage configChanges, you must also add screenLayout to avoid black screen (screen flashes)
So, you should haveandroid:configChanges="locale|layoutDirection|screenLayout"
Steps to reproduce:
Without
layoutDirection|locale|screenLayout
added toandroid:configChanges
With
layoutDirection|locale|screenLayout
added toandroid:configChanges
To fix the screen flash problem during language switching, I tried to add layoutDirection|locale to android:configChanges to <activity>
Additional information
There are several articles mentioned attachBaseContext and onConfigurationChanged, but I couldn't find any up-to-date solution.
The text was updated successfully, but these errors were encountered: