diff --git a/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt b/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt index 71fc3601d..3d7de4a20 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt @@ -92,6 +92,7 @@ object Migrations { } if (oldVersion < 44) { // Reset sorting preference if using removed sort by source + @Suppress("DEPRECATION") if (preferences.librarySortingMode().get() == LibrarySort.SOURCE) { preferences.librarySortingMode().set(LibrarySort.ALPHA) } diff --git a/app/src/main/java/eu/kanade/tachiyomi/source/Source.kt b/app/src/main/java/eu/kanade/tachiyomi/source/Source.kt index 3b7a8cd89..5b1dfbdee 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/source/Source.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/source/Source.kt @@ -62,6 +62,7 @@ interface Source : tachiyomi.source.Source { /** * [1.x API] Get the updated details for a manga. */ + @Suppress("DEPRECATION") override suspend fun getMangaDetails(manga: MangaInfo): MangaInfo { return fetchMangaDetails(manga.toSManga()).awaitSingle() .toMangaInfo() @@ -70,6 +71,7 @@ interface Source : tachiyomi.source.Source { /** * [1.x API] Get all the available chapters for a manga. */ + @Suppress("DEPRECATION") override suspend fun getChapterList(manga: MangaInfo): List { return fetchChapterList(manga.toSManga()).awaitSingle() .map { it.toChapterInfo() } @@ -78,6 +80,7 @@ interface Source : tachiyomi.source.Source { /** * [1.x API] Get the list of pages a chapter has. */ + @Suppress("DEPRECATION") override suspend fun getPageList(chapter: ChapterInfo): List { return fetchPageList(chapter.toSChapter()).awaitSingle() .map { it.toPageUrl() }