几个命令访问权限修改

pull/2/head
lyy 8 years ago
parent 0279bd019b
commit e586168e30
  1. 1
      downloadutil/src/main/java/com/arialyy/downloadutil/core/DownloadManager.java
  2. 4
      downloadutil/src/main/java/com/arialyy/downloadutil/core/command/CancelCommand.java
  3. 4
      downloadutil/src/main/java/com/arialyy/downloadutil/core/command/StateCommand.java
  4. 4
      downloadutil/src/main/java/com/arialyy/downloadutil/core/command/StopCommand.java

@ -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);
}

Loading…
Cancel
Save