Fix category drag-and-drop migrations
This commit is contained in:
parent
ea7cd18302
commit
acdfa3689e
@ -27,7 +27,7 @@ android {
|
|||||||
applicationId = "eu.kanade.tachiyomi.sy"
|
applicationId = "eu.kanade.tachiyomi.sy"
|
||||||
minSdk = AndroidConfig.minSdk
|
minSdk = AndroidConfig.minSdk
|
||||||
targetSdk = AndroidConfig.targetSdk
|
targetSdk = AndroidConfig.targetSdk
|
||||||
versionCode = 36
|
versionCode = 37
|
||||||
versionName = "1.8.4"
|
versionName = "1.8.4"
|
||||||
|
|
||||||
buildConfigField("String", "COMMIT_COUNT", "\"${getCommitCount()}\"")
|
buildConfigField("String", "COMMIT_COUNT", "\"${getCommitCount()}\"")
|
||||||
|
@ -412,7 +412,7 @@ object EXHMigrations {
|
|||||||
preferences.navigationModeWebtoon().set(5)
|
preferences.navigationModeWebtoon().set(5)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (oldVersion under 36) {
|
if (oldVersion under 37) {
|
||||||
// Handle renamed enum values
|
// Handle renamed enum values
|
||||||
@Suppress("DEPRECATION")
|
@Suppress("DEPRECATION")
|
||||||
val newSortingMode = when (val oldSortingMode = preferences.librarySortingMode().get()) {
|
val newSortingMode = when (val oldSortingMode = preferences.librarySortingMode().get()) {
|
||||||
@ -426,7 +426,7 @@ object EXHMigrations {
|
|||||||
runBlocking {
|
runBlocking {
|
||||||
handler.await(true) {
|
handler.await(true) {
|
||||||
categoriesQueries.getCategories(categoryMapper).executeAsList()
|
categoriesQueries.getCategories(categoryMapper).executeAsList()
|
||||||
.filter { SortModeSetting.fromFlag(it.flags) == SortModeSetting.DRAG_AND_DROP }
|
.filter { SortModeSetting.fromFlag(it.flags and SortModeSetting.MASK) == SortModeSetting.DRAG_AND_DROP }
|
||||||
.forEach {
|
.forEach {
|
||||||
categoriesQueries.update(
|
categoriesQueries.update(
|
||||||
categoryId = it.id,
|
categoryId = it.id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user