From 40f79410648bcedff7adbe9a1510f76a9e9a7fdd Mon Sep 17 00:00:00 2001 From: hyb1996 <946994919@qq.com> Date: Sat, 10 Mar 2018 16:35:49 +0800 Subject: [PATCH] fix: `extras` option for app.intent() handles data types incorrectly --- autojs/src/main/assets/modules/__app__.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autojs/src/main/assets/modules/__app__.js b/autojs/src/main/assets/modules/__app__.js index ba82ac87..72a34856 100644 --- a/autojs/src/main/assets/modules/__app__.js +++ b/autojs/src/main/assets/modules/__app__.js @@ -11,7 +11,7 @@ module.exports = function(__runtime__, scope){ } if (i.extras) { for (var key in i.extras) { - intent.putExtra(key, i.extras[key].toString()); + intent.putExtra(key, i.extras[key]); } } if (i.category) {