Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

Commit

Permalink
save status after init
Browse files Browse the repository at this point in the history
  • Loading branch information
raulhaag committed May 3, 2020
1 parent b597736 commit c95f1a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions app/src/main/java/ar/rulosoft/mimanganu/MangaFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -765,14 +765,12 @@ protected void onPostExecute(Void result) {
private class DeleteImages extends AsyncTask<Chapter, Chapter, Integer> {
private ServerBase serverBase;
private int selectionSize = 0;
private Chapter chapter;
private int current = 0;
private ExecutorService es;

DeleteImages(ServerBase serverBase, int selectionSize) {
this.serverBase = serverBase;
this.selectionSize = selectionSize;
mNotifyID_DeleteImages = (int) System.currentTimeMillis();
}

@Override
Expand Down
5 changes: 4 additions & 1 deletion app/src/main/java/ar/rulosoft/mimanganu/ReaderFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,10 @@ protected Chapter doInBackground(Chapter... arg0) {
Chapter c = arg0[0];
ServerBase s = ServerBase.getServer(ReaderFragment.this.mManga.getServerId(), getContext());
try {
if (c.getPages() < 1) s.chapterInit(c);
if (c.getPages() < 1) {
s.chapterInit(c);
Database.updateChapter(getContext(), c);
}
} catch (Exception e) {
if (e.getMessage() != null)
error = e.getMessage();
Expand Down

0 comments on commit c95f1a0

Please sign in to comment.