未验证 提交 4dca694f 编写于 作者: O openharmony_ci 提交者: Gitee

!14770 modify the value 'MainAbility' to default value 'EntryAbility'

Merge pull request !14770 from onexiaomin/master
......@@ -114,7 +114,7 @@ createFileAccessHelper(context: Context, wants: Array<Want>) : FileAccessH
},
]
try {
// this.context 是MainAbility 传过来的context
// this.context 是EntryAbility 传过来的context
fileAccessHelper = fileAccess.createFileAccessHelper(this.context, wantInfos);
if (!fileAccessHelper)
console.error("createFileAccessHelper interface returns an undefined object");
......@@ -153,7 +153,7 @@ createFileAccessHelper(context: Context) : FileAccessHelper
let fileAccesssHelperAllServer = null;
// 创建连接系统内所有配置fileAccess的文件管理类服务的helper对象
try {
// this.context 是MainAbility 传过来的context
// this.context 是EntryAbility 传过来的context
fileAccesssHelperAllServer = fileAccess.createFileAccessHelper(this.context);
if (!fileAccesssHelperAllServer)
console.error("createFileAccessHelper interface returns an undefined object");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册