Skip to content

代码 #3

@OneLeafAlex

Description

@OneLeafAlex

public interface CompressServiceListener {
void onCompressServiceStart();
void onCompressServiceEnd(ArrayList<LGImgCompressor.CompressResult> compressResults);
}

你的代码还是旧的把。这2个方法好像没有用到哦,还是用的之前的广播发送消息的。我想一种在后台监测。是不是在这个方法不要调用 stopSelf(taskId);就行了啊?我压缩之后的文件是空的,为啥子?
synchronized (lock){
compressResults.add(compressResult);
taskNumber--;
if(taskNumber <= 0){
stopSelf(taskId);
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions