This repository has been archived by the owner on Oct 3, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from Doomsdayrs/development
Merging for newest release
- Loading branch information
Showing
109 changed files
with
3,596 additions
and
1,947 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
app/src/main/java/com/github/doomsdayrs/apps/shosetsu/backend/Update_Manager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package com.github.doomsdayrs.apps.shosetsu.backend; | ||
|
||
import android.content.Context; | ||
import android.os.AsyncTask; | ||
|
||
import com.github.doomsdayrs.apps.shosetsu.ui.updates.async.ChapterUpdater; | ||
import com.github.doomsdayrs.apps.shosetsu.variables.recycleObjects.NovelCard; | ||
|
||
import java.util.ArrayList; | ||
|
||
/* | ||
* This file is part of Shosetsu. | ||
* | ||
* Shosetsu is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Shosetsu is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Shosetsu. If not, see <https://www.gnu.org/licenses/>. | ||
* ==================================================================== | ||
* Shosetsu | ||
* 16 / 06 / 2019 | ||
* | ||
* @author github.com/doomsdayrs | ||
*/ | ||
public class Update_Manager { | ||
private static ChapterUpdater chapterUpdater = null; | ||
|
||
public static void init(ArrayList<NovelCard> novelCards, Context context) { | ||
if (chapterUpdater == null) { | ||
chapterUpdater = new ChapterUpdater(novelCards, context); | ||
chapterUpdater.execute(); | ||
} else { | ||
if (chapterUpdater.isCancelled() || chapterUpdater.getStatus().equals(AsyncTask.Status.FINISHED)) { | ||
chapterUpdater = new ChapterUpdater(novelCards, context); | ||
chapterUpdater.execute(); | ||
} | ||
if (chapterUpdater.getStatus().equals(AsyncTask.Status.PENDING)) | ||
chapterUpdater.execute(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 0 additions & 38 deletions
38
app/src/main/java/com/github/doomsdayrs/apps/shosetsu/backend/async/UpdateLibrary.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.