提交 3ac3992c 编写于 作者: 杜庆泉's avatar 杜庆泉

uts array +1

上级 99d61c9c
...@@ -279,7 +279,7 @@ export default function gotoDemoActivity():boolean { ...@@ -279,7 +279,7 @@ export default function gotoDemoActivity():boolean {
try{ try{
let packageManager = UTSAndroid.getUniActivity()!.getPackageManager(); let packageManager = UTSAndroid.getUniActivity()!.getPackageManager();
let intent = new Intent(UTSAndroid.getUniActivity(),DemoActivity().javaClass); let intent = new Intent(UTSAndroid.getUniActivity(),DemoActivity().javaClass);
let resolveInfo = packageManager.queryIntentActivities(intent,0) as Array<ResolveInfo>; let resolveInfo = packageManager.queryIntentActivities(intent,0);
console.log(resolveInfo.size) console.log(resolveInfo.size)
if(resolveInfo.size == 0){ if(resolveInfo.size == 0){
hasXActivityIntegration = false; hasXActivityIntegration = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册