mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-25 19:29:54 +01:00
Apply automated ktlint 1.2.1 formatting.
This commit is contained in:
committed by
Clark Chen
parent
e861c022da
commit
cfb4377de3
@@ -7,6 +7,8 @@ package org.thoughtcrime.securesms.backup.v2
|
||||
|
||||
class BackupV2Event(val type: Type, val count: Long, val estimatedTotalCount: Long) {
|
||||
enum class Type {
|
||||
PROGRESS_MESSAGES, PROGRESS_ATTACHMENTS, FINISHED
|
||||
PROGRESS_MESSAGES,
|
||||
PROGRESS_ATTACHMENTS,
|
||||
FINISHED
|
||||
}
|
||||
}
|
||||
|
||||
@@ -466,7 +466,15 @@ class ChatItemExportIterator(private val cursor: Cursor, private val batchSize:
|
||||
return MessageAttachment(
|
||||
pointer = builder.build(),
|
||||
wasDownloaded = this.transferState == AttachmentTable.TRANSFER_PROGRESS_DONE || this.transferState == AttachmentTable.TRANSFER_NEEDS_RESTORE,
|
||||
flag = if (voiceNote) MessageAttachment.Flag.VOICE_MESSAGE else if (videoGif) MessageAttachment.Flag.GIF else if (borderless) MessageAttachment.Flag.BORDERLESS else MessageAttachment.Flag.NONE
|
||||
flag = if (voiceNote) {
|
||||
MessageAttachment.Flag.VOICE_MESSAGE
|
||||
} else if (videoGif) {
|
||||
MessageAttachment.Flag.GIF
|
||||
} else if (borderless) {
|
||||
MessageAttachment.Flag.BORDERLESS
|
||||
} else {
|
||||
MessageAttachment.Flag.NONE
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -76,6 +76,8 @@ class MessageBackupsTestRestoreViewModel : ViewModel() {
|
||||
)
|
||||
|
||||
enum class ImportState(val inProgress: Boolean = false) {
|
||||
NONE, IN_PROGRESS(true), RESTORED
|
||||
NONE,
|
||||
IN_PROGRESS(true),
|
||||
RESTORED
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user