diff --git a/liveviewlockscreenlibrary/src/main/ets/utils/LiveViewUtil.ets b/liveviewlockscreenlibrary/src/main/ets/utils/LiveViewUtil.ets index 20e7b98b8dc4f01bdf156e949f29809c362a949c..b08ee7f29fb4726d5daf41c8ed67ec270580f8cc 100644 --- a/liveviewlockscreenlibrary/src/main/ets/utils/LiveViewUtil.ets +++ b/liveviewlockscreenlibrary/src/main/ets/utils/LiveViewUtil.ets @@ -199,7 +199,7 @@ export class LiveViewUtil { private getResourceStringSync(resource: Resource): string { let stringSyn: string = ''; try { - stringSyn = this.context.resourceManager.getStringSync(resource); + stringSyn = this.context.resourceManager.getStringSync(resource.id); } catch (error) { hilog.error(0x0000, TAG, '%{public}s', `Get string failed. code: ${(error as BusinessError).code} message is ${(error as BusinessError).message}`);