Merge pull request #2037 from nEdAy/feature/fixed-edit-book-sources-dialog-error

Fixed the problem that some book sources were not edited, but the prompt "尚未保存,是否继续编辑" is displayed when exiting.
This commit is contained in:
kunfei
2022-07-09 09:47:29 +08:00
committed by GitHub
5 changed files with 5 additions and 8 deletions

View File

@@ -125,7 +125,7 @@ public class UmdChapters {
int left = 0;
int chunkCnt = 0;
ByteArrayOutputStream bos = new ByteArrayOutputStream(DEFAULT_CHUNK_INIT_SIZE + 256);
List<byte[]> chunkRbList = new ArrayList<byte[]>();
List<byte[]> chunkRbList = new ArrayList<>();
while(startPos < allContents.length) {
left = allContents.length - startPos;