diff --git a/app/src/main/java/com/github/doomsdayrs/apps/shosetsu/backend/database/Database.java b/app/src/main/java/com/github/doomsdayrs/apps/shosetsu/backend/database/Database.java index a7b6723028..981e4e6137 100644 --- a/app/src/main/java/com/github/doomsdayrs/apps/shosetsu/backend/database/Database.java +++ b/app/src/main/java/com/github/doomsdayrs/apps/shosetsu/backend/database/Database.java @@ -152,7 +152,6 @@ public static Object deserialize(String string) throws IOException, ClassNotFoun return objectInputStream.readObject(); } - /** * Download control */ @@ -266,6 +265,14 @@ public static int getDownloadCount() { */ public static class DatabaseChapter { + // TODO This will remove all chapter data + public static void purgeCache(){ + + } + + //TODO purge not needed cache + public static void purgeUneededCache(){ + } /** * @param novelURL diff --git a/app/src/main/java/com/github/doomsdayrs/apps/shosetsu/ui/adapters/novel/ChaptersAdapter.java b/app/src/main/java/com/github/doomsdayrs/apps/shosetsu/ui/adapters/novel/ChaptersAdapter.java index a46be25fe9..e143f604b4 100644 --- a/app/src/main/java/com/github/doomsdayrs/apps/shosetsu/ui/adapters/novel/ChaptersAdapter.java +++ b/app/src/main/java/com/github/doomsdayrs/apps/shosetsu/ui/adapters/novel/ChaptersAdapter.java @@ -109,6 +109,8 @@ public void onBindViewHolder(@NonNull ChaptersViewHolder chaptersViewHolder, int case READ: chaptersViewHolder.status.setText(Status.READ.getStatus()); + chaptersViewHolder.readTag.setVisibility(View.GONE); + chaptersViewHolder.read.setVisibility(View.GONE); break; case UNREAD: