mirror of
https://gitee.com/openharmony/applications_systemui
synced 2025-01-08 09:02:09 +00:00
commit
4bc4e33215
@ -229,13 +229,12 @@ export class ViewModel {
|
||||
removeGroupNotification(itemData, isDelSysConent) {
|
||||
Log.showInfo(TAG, `removeGroupNotification, groupName: ${itemData.groupName}`);
|
||||
let groupName = itemData.groupName;
|
||||
let index = this.mNotificationList.length;
|
||||
while (i--) {
|
||||
for (let i = this.mNotificationList.length - 1; i >= 0; i--) {
|
||||
if (this.mNotificationList[i].groupName == groupName) {
|
||||
let id = this.mNotificationList[i].id
|
||||
let hashcode = this.mNotificationList[i].hashcode
|
||||
let removeItemArr = this.mNotificationList.splice(i, 1);
|
||||
Log.showInfo(TAG, `removeGroupNotification i = ${i} removeItemArr= ${JSON.stringify(removeItemArr)}`);
|
||||
Log.showDebug(TAG, `removeGroupNotification i = ${i} removeItemArr= ${JSON.stringify(removeItemArr)}`);
|
||||
if (!CheckEmptyUtils.isEmpty(removeItemArr)) {
|
||||
this.updateFlowControlInfos(removeItemArr[0].bundleName, false)
|
||||
}
|
||||
@ -293,7 +292,7 @@ export class ViewModel {
|
||||
}
|
||||
this.mNotificationCtrl['app'].set(item.bundleName, tmp);
|
||||
}
|
||||
Log.showInfo(TAG, 'initFlowControlInfos end, mNotificationCtrl: ' + JSON.stringify(this.mNotificationCtrl));
|
||||
Log.showDebug(TAG, 'initFlowControlInfos end, mNotificationCtrl: ' + JSON.stringify(this.mNotificationCtrl));
|
||||
}
|
||||
|
||||
isCanShow(bundleName: string): boolean {
|
||||
|
Loading…
Reference in New Issue
Block a user