几个命令访问权限修改

This commit is contained in:
lyy
2016-09-23 16:18:00 +08:00
parent 0279bd019b
commit e586168e30
4 changed files with 6 additions and 7 deletions

View File

@ -61,7 +61,6 @@ public class DownloadManager {
private DownloadManager(Context context) { private DownloadManager(Context context) {
mContext = context; mContext = context;
// ACTION_RUNNING = context.getPackageName();
} }
public static DownloadManager getInstance(Context context) { public static DownloadManager getInstance(Context context) {

View File

@ -7,9 +7,9 @@ import com.arialyy.downloadutil.entity.DownloadEntity;
* Created by lyy on 2016/9/20. * 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); super(context, entity);
} }

View File

@ -7,13 +7,13 @@ import com.arialyy.downloadutil.entity.DownloadEntity;
* Created by lyy on 2016/9/20. * Created by lyy on 2016/9/20.
* 获取下载状态的命令 * 获取下载状态的命令
*/ */
public class StateCommand extends IDownloadCommand { class StateCommand extends IDownloadCommand {
/** /**
* @param context context * @param context context
* @param entity 下载实体 * @param entity 下载实体
*/ */
protected StateCommand(Context context, DownloadEntity entity) { StateCommand(Context context, DownloadEntity entity) {
super(context, entity); super(context, entity);
} }

View File

@ -7,13 +7,13 @@ import com.arialyy.downloadutil.entity.DownloadEntity;
* Created by lyy on 2016/9/20. * Created by lyy on 2016/9/20.
* 停止命令 * 停止命令
*/ */
public class StopCommand extends IDownloadCommand { class StopCommand extends IDownloadCommand {
/** /**
* @param context context * @param context context
* @param entity 下载实体 * @param entity 下载实体
*/ */
protected StopCommand(Context context, DownloadEntity entity) { StopCommand(Context context, DownloadEntity entity) {
super(context, entity); super(context, entity);
} }