Changing locale programmatically not working in some devices

后端 未结 2 1442
-上瘾入骨i
-上瘾入骨i 2020-12-17 22:26

I\'ve the following piece of code:

/**
 * Sets a new Locale for the APP.
 * @param newLocale - Valid new locale.
 */
private static void setLocale( String ne         


        
2条回答
  •  死守一世寂寞
    2020-12-17 22:34

    Well,

    User Sir SC provided an answer which worked. But my code, also worked. The issue we were facing, was about a single device ignoring this locale change. So AFAIK, it's just a single device, and it might be caused because of a buggy ROM, as it was a Genymotion Emulator.

    So overall, the answer is:

    • The code OP posted, is valid and working. So is the code from Sir SC.

    Cheers.

提交回复
热议问题