!117 解决进度条通知显示空白的问题

Merge pull request !117 from fengwei/master
This commit is contained in:
openharmony_ci
2023-08-07 01:57:28 +00:00
committed by Gitee
2 changed files with 5 additions and 1 deletions
@@ -22,6 +22,7 @@ import createOrGet from "../../../../../../../../../common/src/main/ets/default/
import DistributionManager from './NotificationDistributionManager';
const TAG = 'NotificationServiceSc';
const PLUGIN_TEMPLATE = {"source":"/system/etc/notification_template/assets/js/downloadTemplate.js","ability":"" } ;
interface NotificationListener {
userId: number;
@@ -135,6 +136,9 @@ export class NotificationService {
if (NotificationManager.NotificationTemplateMap !== null) {
pluginTempLate = NotificationManager.NotificationTemplateMap.get(templateName);
}
if (pluginTempLate == undefined || pluginTempLate == null) {
pluginTempLate = PLUGIN_TEMPLATE;
}
Log.showInfo(TAG, `getPluginTempLate pluginTempLate:${JSON.stringify(pluginTempLate)}`);
return pluginTempLate;
}
@@ -2,7 +2,7 @@
"float": [
{
"name": "notificationList_width",
"value": "336vp"
"value": "400vp"
},
{
"name": "notification_title_fontsize",