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