library/src/main/java/com/liulishuo/filedownloader/notification/FileDownloadNotificationListener.java
public void destroyNotification(BaseDownloadTask task) {
        if (disableNotification(task)) {
            return;
        }

        this.helper.showIndeterminate(task.getId(), task.getStatus());

        final BaseNotificationItem n = this.helper.
                remove(task.getId());
        if (!interceptCancel(task, n) && n != null) {
            n.cancel();
        }
    }
public void destroyNotification(BaseDownloadTask task) {
        if (disableNotification(task)) {
            return;
        }

        this.helper.showIndeterminate(task.getId(), task.getStatus());

        final BaseNotificationItem n = this.helper.
                remove(task.getId());
        if (!interceptCancel(task, n) && n != null) {
            n.cancel();
        }
    }
public void destroyNotification ( BaseDownloadTask task ) { if ( disableNotification ( task ) ) { return ; } this . helper . showIndeterminate ( task . getId ( ) , task . getStatus ( ) ) ; final BaseNotificationItem n = this . helper . remove ( task . getId ( ) ) ; if ( ! interceptCancel ( task , n ) && n != null ) { n . cancel ( ) ; } }
The notification item with the {@code task} is told to destroy.

@param task The task used to identify the will be destroyed notification item.
The notification item with the { @code task } is told to destroy .