mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-29 05:04:54 +01:00
Improve speed/feedback of final steps of backup restore.
This commit is contained in:
@@ -974,6 +974,8 @@ object BackupRepository {
|
||||
eventTimer.emit("chatItem")
|
||||
}
|
||||
|
||||
EventBus.getDefault().post(RestoreV2Event(RestoreV2Event.Type.PROGRESS_FINALIZING, 0.bytes, 0.bytes))
|
||||
|
||||
if (!importState.importedChatFolders) {
|
||||
// Add back default All Chats chat folder after clearing data if missing
|
||||
SignalDatabase.chatFolders.insertAllChatFolder()
|
||||
|
||||
@@ -11,7 +11,7 @@ class RestoreV2Event(val type: Type, val count: ByteSize, val estimatedTotalCoun
|
||||
enum class Type {
|
||||
PROGRESS_DOWNLOAD,
|
||||
PROGRESS_RESTORE,
|
||||
FINISHED
|
||||
PROGRESS_FINALIZING
|
||||
}
|
||||
|
||||
fun getProgress(): Float {
|
||||
|
||||
Reference in New Issue
Block a user