jimu-decompiled/sources/com/liulishuo/filedownloader/services/FileDownloadBroadcastHandler.java
2025-05-13 19:24:51 +02:00

21 lines
743 B
Java

package com.liulishuo.filedownloader.services;
import android.content.Intent;
import com.liulishuo.filedownloader.model.FileDownloadModel;
import com.liulishuo.filedownloader.util.FileDownloadHelper;
/* loaded from: classes.dex */
public class FileDownloadBroadcastHandler {
public static void a(FileDownloadModel fileDownloadModel) {
if (fileDownloadModel == null) {
throw new IllegalArgumentException();
}
if (fileDownloadModel.getStatus() != -3) {
throw new IllegalStateException();
}
Intent intent = new Intent("filedownloader.intent.action.completed");
intent.putExtra("model", fileDownloadModel);
FileDownloadHelper.a().sendBroadcast(intent);
}
}