chore: add ensureAccessibilityServiceEnabled() to currentPackage(), currentActivity(), events.observeKey()

This commit is contained in:
hyb1996
2017-12-09 10:45:14 +08:00
parent 87c7cc73c3
commit 6128aa28a6
2 changed files with 9 additions and 3 deletions

View File

@@ -38,10 +38,12 @@ module.exports = function(__runtime__, scope){
}
scope.currentPackage = function(){
scope.auto();
return __runtime__.info.getLatestPackage();
}
scope.currentActivity = function(){
scope.auto();
return __runtime__.info.getLatestActivity();
}