当前位置:   article > 正文

android 7.1系统语言设置和5.1.1不同_android7.1跟5.1有啥区别

android7.1跟5.1有啥区别
//7.1参考 \frameworks\base\core\java\com\android\internal\app\LocalePicker.java
public static void updateLocale(Locale locale) {
updateLocales(new LocaleList(locale));
}
   /**
     * Requests the system to update the list of system locales.
     * Note that the system looks halted for a while during the Locale migration,
     * so the caller need to take care of it.
     */
    public static void updateLocales(LocaleList locales) {
        try {
            final IActivityManager am = ActivityManagerNative.getDefault();
            final Configuration config = am.getConfiguration();


            config.setLocales(locales);
            config.userSetLocale = true;
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/255625
推荐阅读
相关标签
  

闽ICP备14008679号