mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 11:38:51 +01:00
Move backup/restore status strings to resources, show completed state
This commit is contained in:
@@ -23,9 +23,13 @@ import io.reactivex.Observable
|
||||
|
||||
interface BackupRepository {
|
||||
|
||||
sealed class Progress {
|
||||
sealed class Progress(val running: Boolean = false, val indeterminate: Boolean = true) {
|
||||
class Idle : Progress()
|
||||
class Running(val progress: Int, val status: String? = null) : Progress()
|
||||
class Parsing : Progress(true)
|
||||
class Running(val max: Int, val count: Int) : Progress(true, false)
|
||||
class Saving : Progress(true)
|
||||
class Syncing : Progress(true)
|
||||
class Finished : Progress(true, false)
|
||||
}
|
||||
|
||||
fun performBackup()
|
||||
|
||||
Reference in New Issue
Block a user