4.1.0 Alpha3

This commit is contained in:
hyb1996
2018-12-12 18:48:51 +08:00
parent 975940dced
commit 7ec6a739ad
12 changed files with 26 additions and 15 deletions

View File

@@ -62,11 +62,16 @@ module.exports = function (runtime, global) {
throw new Error("class " + i + " not found");
}
}
if(i instanceof android.content.Intent){
context.startActivity(i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
return;
}
if(i && i.root) {
shell("am start " + app.intentToShell(i), true);
}else{
context.startActivity(app.intent(i).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
}
}
app.sendBroadcast = function (i) {