几个命令访问权限修改
This commit is contained in:
@ -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;
|
||||
* Created by lyy on 2016/9/20.
|
||||
* 获取下载状态的命令
|
||||
*/
|
||||
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) {
|
||||
super(context, entity);
|
||||
}
|
||||
|
||||
|
@ -7,13 +7,13 @@ import com.arialyy.downloadutil.entity.DownloadEntity;
|
||||
* Created by lyy on 2016/9/20.
|
||||
* 停止命令
|
||||
*/
|
||||
public class StopCommand extends IDownloadCommand {
|
||||
class StopCommand extends IDownloadCommand {
|
||||
|
||||
/**
|
||||
* @param context context
|
||||
* @param entity 下载实体
|
||||
*/
|
||||
protected StopCommand(Context context, DownloadEntity entity) {
|
||||
StopCommand(Context context, DownloadEntity entity) {
|
||||
super(context, entity);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user