投稿画面の添付メディア並び替えの後にsaveAttachmentList()する

This commit is contained in:
tateisu 2023-11-27 07:19:16 +09:00
parent 63bd4c6563
commit 01e00f0582
3 changed files with 5 additions and 3 deletions

View File

@ -279,6 +279,8 @@ tasks.register<Detekt>("detektAll") {
val buildFiles = "**/build/**"
exclude(resourceFiles, buildFiles)
reports {
val buildDir = layout.buildDirectory
xml.required.set(false)
xml.outputLocation.set(file("$buildDir/reports/detekt/st-${name}.xml"))
@ -292,4 +294,3 @@ tasks.register<Detekt>("detektAll") {
sarif.outputLocation.set(file("$buildDir/reports/detekt/st-${name}.sarif"))
}
}

View File

@ -146,9 +146,9 @@ fun ActPost.addAttachment(
return
}
saveAttachmentList()
val pa = PostAttachment(this)
attachmentList.add(pa)
saveAttachmentList()
showMediaAttachment()
attachmentUploader.addRequest(
@ -470,6 +470,7 @@ fun ActPost.rearrangeAttachments() = lifecycleScope.launch {
// attachmentListを更新して表示し直す
attachmentList.clear()
attachmentList.addAll(newList)
saveAttachmentList()
showMediaAttachment()
showMediaAttachmentProgress()
} catch (ex: Throwable) {

View File

@ -24,7 +24,7 @@ object Vers {
const val koinVersion = "3.5.0"
const val kotlinJvmTarget = "1.8"
const val kotlinJvmToolchain = 17
const val kotlinTestVersion = "1.9.0"
const val kotlinTestVersion = "1.9.20"
const val kotlinVersion = "1.9.20"
const val kotlinxCoroutinesVersion = "1.7.3"
const val kspVersion = "1.9.20-1.0.14"