79420982

Date: 2025-02-07 13:09:52
Score: 1
Natty:
Report link

From SDK 33 (Tiramisu), instead of using updateConfiguration the recommended way to change language is:

        AppCompatDelegate.setApplicationLocales(locale);

It is worth to note that: This API should always be called after Activity.onCreate(), apart from any exceptions explicitly mentioned in this documentation.

Reference: setApplicationLocales

Reasons:
  • Blacklisted phrase (1): this document
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: monblu