我在清单中设置android:supportsRtl="true"
并调用setLocale("ar");
Locale locale = new Locale(lang);
LocaleChanger.setLocale(locale);
Intent refresh = new Intent(getContext(), MainActivity.class);
getActivity().finish();
refresh.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(refresh);
它在我的三星设备上运行得很好,但在华为设备上就不行了。它正在切换,locale.default为我提供了" ar“作为语言,但由于某种原因,它似乎没有检测到ar string.xml
你知道为什么会发生这种情况以及可能的修复方法吗?
编辑:我必须添加在调试类型,它适用于华为设备,但不是在发布或生产类型。
发布于 2019-07-19 04:00:03
当我上传到商店时,我把.aab改成了apk,最终修复了这个问题。
https://stackoverflow.com/questions/57078181
复制相似问题