-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
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
Labels
No labels