Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

Commit

Permalink
Fixed chapter cast issues
Browse files Browse the repository at this point in the history
  • Loading branch information
doomsdayrs committed Sep 7, 2019
1 parent 4ad225b commit 6f2a529
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "com.github.doomsdayrs.apps.shosetsu"
minSdkVersion 22
targetSdkVersion 29
versionCode 20
versionName "v0.1.0"
versionCode 21
versionName "v0.1.0.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
Expand Down Expand Up @@ -60,6 +60,7 @@ dependencies {

implementation 'com.github.Doomsdayrs:shosetsu-extensions:0.1.1'
implementation 'com.github.Doomsdayrs:shosetsu-services:v0.1.1'

implementation 'com.github.Doomsdayrs:novelreader-services:1.1.4'

implementation 'com.squareup.picasso:picasso:2.71828'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,14 @@ public static Object deserialize(String string) throws IOException, ClassNotFoun
newPage.tags = oldPage.tags;
newPage.title = oldPage.title;
return newPage;
} else if (c.equals(com.github.Doomsdayrs.api.novelreader_core.services.core.objects.NovelChapter.class)) {
System.out.println("WARNING, OLD CHAPTER DETECTED.");
com.github.Doomsdayrs.api.novelreader_core.services.core.objects.NovelChapter C = (com.github.Doomsdayrs.api.novelreader_core.services.core.objects.NovelChapter) object;
NovelChapter newC = new NovelChapter();
newC.chapterNum = C.chapterNum;
newC.link = C.link;
newC.release = C.release;
return newC;
}
return object;
}
Expand Down

0 comments on commit 6f2a529

Please sign in to comment.