|
|
@ -53,9 +53,6 @@ class ImportBookSourceViewModel(app: Application) : BaseViewModel(app) { |
|
|
|
selectStatus.forEachIndexed { index, b -> |
|
|
|
selectStatus.forEachIndexed { index, b -> |
|
|
|
if (b) { |
|
|
|
if (b) { |
|
|
|
val source = allSources[index] |
|
|
|
val source = allSources[index] |
|
|
|
if (groupName != null) { |
|
|
|
|
|
|
|
source.bookSourceGroup = groupName |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (keepName) { |
|
|
|
if (keepName) { |
|
|
|
checkSources[index]?.let { |
|
|
|
checkSources[index]?.let { |
|
|
|
source.bookSourceName = it.bookSourceName |
|
|
|
source.bookSourceName = it.bookSourceName |
|
|
@ -63,6 +60,9 @@ class ImportBookSourceViewModel(app: Application) : BaseViewModel(app) { |
|
|
|
source.customOrder = it.customOrder |
|
|
|
source.customOrder = it.customOrder |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (groupName != null) { |
|
|
|
|
|
|
|
source.bookSourceGroup = groupName |
|
|
|
|
|
|
|
} |
|
|
|
selectSource.add(source) |
|
|
|
selectSource.add(source) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|