提交 b17516df 编写于 作者: O onexiaomin

fixed 968d75ee from https://gitee.com/onexiaomin/docs_wp_3/pulls/14770

modify the value 'MainAbility' to default value 'EntryAbility'
Signed-off-by: Nwangminmin <wangminmin4@huawei.com>
上级 637693e3
......@@ -114,7 +114,7 @@ createFileAccessHelper(context: Context, wants: Array&lt;Want&gt;) : 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.
先完成此消息的编辑!
想要评论请 注册