forked from upstream-mirrors/quik
Log errors from backup restore
This commit is contained in:
@@ -52,7 +52,7 @@ class BackupRepositoryImpl @Inject constructor(
|
||||
}
|
||||
|
||||
data class Backup(
|
||||
val messages: List<BackupMessage>
|
||||
val messages: List<BackupMessage> = listOf()
|
||||
)
|
||||
|
||||
data class BackupMessage(
|
||||
|
||||
@@ -30,6 +30,7 @@ import com.moez.QKSMS.repository.BackupRepository
|
||||
import dagger.android.AndroidInjection
|
||||
import io.reactivex.Observable
|
||||
import io.reactivex.schedulers.Schedulers
|
||||
import timber.log.Timber
|
||||
import java.util.concurrent.TimeUnit
|
||||
import javax.inject.Inject
|
||||
|
||||
@@ -96,8 +97,9 @@ class RestoreBackupService : Service() {
|
||||
// Start the restore
|
||||
Observable.just(intent)
|
||||
.map { it.getStringExtra(EXTRA_FILE_PATH) }
|
||||
.map(backupRepo::performRestore)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.subscribe(backupRepo::performRestore)
|
||||
.subscribe({}, Timber::w)
|
||||
}
|
||||
|
||||
private fun stop() {
|
||||
|
||||
Reference in New Issue
Block a user