From adf11063b77f3f520b3f94bdd2d0e2f6eb5726ed Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Mon, 22 Mar 2021 16:28:28 -0400 Subject: [PATCH] Added manga sort to backup in categories --- .../tachiyomi/data/backup/full/models/BackupCategory.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/models/BackupCategory.kt b/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/models/BackupCategory.kt index e1d543eda1..27bc4d354e 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/models/BackupCategory.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/models/BackupCategory.kt @@ -12,12 +12,16 @@ class BackupCategory( // @ProtoNumber(3) val updateInterval: Int = 0, 1.x value not used in 0.x // Bump by 100 to specify this is a 0.x value @ProtoNumber(100) var flags: Int = 0, + + // J2K Specific values + @ProtoNumber(800) var mangaSort: Char?, ) { fun getCategoryImpl(): CategoryImpl { return CategoryImpl().apply { name = this@BackupCategory.name flags = this@BackupCategory.flags order = this@BackupCategory.order + mangaSort = this@BackupCategory.mangaSort } } @@ -26,7 +30,8 @@ class BackupCategory( return BackupCategory( name = category.name, order = category.order, - flags = category.flags + flags = category.flags, + mangaSort = category.mangaSort ) } }