未验证 提交 09dcc3d5 编写于 作者: G Gary Qian 提交者: GitHub

Gate locale.getScript() behind version check for android API < 21 (#6592)

上级 c1762447
......@@ -345,7 +345,11 @@ public class FlutterView extends SurfaceView
List<String> data = new ArrayList<String>();
data.add(locale.getLanguage());
data.add(locale.getCountry());
if (Build.VERSION.SDK_INT >= 21) {
data.add(locale.getScript());
} else {
data.add("");
}
data.add(locale.getVariant());
mFlutterLocalizationChannel.invokeMethod("setLocale", Arrays.asList(locale.getLanguage(), locale.getCountry(), locale.getScript(), locale.getVariant()));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册