投稿画面の添付メディア並び替えの後にsaveAttachmentList()する
This commit is contained in:
parent
63bd4c6563
commit
01e00f0582
|
@ -279,6 +279,8 @@ tasks.register<Detekt>("detektAll") {
|
||||||
val buildFiles = "**/build/**"
|
val buildFiles = "**/build/**"
|
||||||
exclude(resourceFiles, buildFiles)
|
exclude(resourceFiles, buildFiles)
|
||||||
reports {
|
reports {
|
||||||
|
val buildDir = layout.buildDirectory
|
||||||
|
|
||||||
xml.required.set(false)
|
xml.required.set(false)
|
||||||
xml.outputLocation.set(file("$buildDir/reports/detekt/st-${name}.xml"))
|
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"))
|
sarif.outputLocation.set(file("$buildDir/reports/detekt/st-${name}.sarif"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -146,9 +146,9 @@ fun ActPost.addAttachment(
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
saveAttachmentList()
|
|
||||||
val pa = PostAttachment(this)
|
val pa = PostAttachment(this)
|
||||||
attachmentList.add(pa)
|
attachmentList.add(pa)
|
||||||
|
saveAttachmentList()
|
||||||
showMediaAttachment()
|
showMediaAttachment()
|
||||||
|
|
||||||
attachmentUploader.addRequest(
|
attachmentUploader.addRequest(
|
||||||
|
@ -470,6 +470,7 @@ fun ActPost.rearrangeAttachments() = lifecycleScope.launch {
|
||||||
// attachmentListを更新して表示し直す
|
// attachmentListを更新して表示し直す
|
||||||
attachmentList.clear()
|
attachmentList.clear()
|
||||||
attachmentList.addAll(newList)
|
attachmentList.addAll(newList)
|
||||||
|
saveAttachmentList()
|
||||||
showMediaAttachment()
|
showMediaAttachment()
|
||||||
showMediaAttachmentProgress()
|
showMediaAttachmentProgress()
|
||||||
} catch (ex: Throwable) {
|
} catch (ex: Throwable) {
|
||||||
|
|
|
@ -24,7 +24,7 @@ object Vers {
|
||||||
const val koinVersion = "3.5.0"
|
const val koinVersion = "3.5.0"
|
||||||
const val kotlinJvmTarget = "1.8"
|
const val kotlinJvmTarget = "1.8"
|
||||||
const val kotlinJvmToolchain = 17
|
const val kotlinJvmToolchain = 17
|
||||||
const val kotlinTestVersion = "1.9.0"
|
const val kotlinTestVersion = "1.9.20"
|
||||||
const val kotlinVersion = "1.9.20"
|
const val kotlinVersion = "1.9.20"
|
||||||
const val kotlinxCoroutinesVersion = "1.7.3"
|
const val kotlinxCoroutinesVersion = "1.7.3"
|
||||||
const val kspVersion = "1.9.20-1.0.14"
|
const val kspVersion = "1.9.20-1.0.14"
|
||||||
|
|
Loading…
Reference in New Issue