!444 I8S42V,稳定性问题整改,栈名:notificationSlotSet

Merge pull request !444 from 王环/master
This commit is contained in:
openharmony_ci 2024-03-08 09:19:15 +00:00 committed by Gitee
commit 41b79962ba
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -234,7 +234,12 @@ export default struct SlotSetting {
}
notificationSlotSet() {
Log.showDebug(TAG, `notificationSlotSet slotInfo:${JSON.stringify(this.slotInfo)}`)
Log.showDebug(TAG, `notificationSlotSet slotInfo:${JSON.stringify(this.slotInfo)}`);
if (this.appInfo.appBundleName == null || this.slotInfo == null) {
Log.showError(TAG, `notificationSlotSet, invalid parameter, bundle: ${this.appInfo?.appBundleName} ` +
`uid: ${this.appInfo?.appUid}`);
return;
}
NotificationListener.notificationSlotSet({ bundle: this.appInfo.appBundleName, uid: this.appInfo.appUid }, this.slotInfo);
}
}