@ -61,7 +61,6 @@ public class DownloadManager {
private DownloadManager(Context context) {
mContext = context;
// ACTION_RUNNING = context.getPackageName();
}
public static DownloadManager getInstance(Context context) {
@ -7,9 +7,9 @@ import com.arialyy.downloadutil.entity.DownloadEntity;
* Created by lyy on 2016/9/20.
* 取消命令
*/
public class CancelCommand extends IDownloadCommand {
class CancelCommand extends IDownloadCommand {
protected CancelCommand(Context context, DownloadEntity entity) {
CancelCommand(Context context, DownloadEntity entity) {
super(context, entity);
@ -7,13 +7,13 @@ import com.arialyy.downloadutil.entity.DownloadEntity;
* 获取下载状态的命令
public class StateCommand extends IDownloadCommand {
class StateCommand extends IDownloadCommand {
/**
* @param context context
* @param entity 下载实体
protected StateCommand(Context context, DownloadEntity entity) {
StateCommand(Context context, DownloadEntity entity) {
* 停止命令
public class StopCommand extends IDownloadCommand {
class StopCommand extends IDownloadCommand {
protected StopCommand(Context context, DownloadEntity entity) {
StopCommand(Context context, DownloadEntity entity) {