mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 08:20:32 +05:30
Merge pull request #3727 from Bnyro/master
Attempt to fix restoring backups
This commit is contained in:
commit
e7fc5b9a04
@ -26,14 +26,14 @@ class BackupRestoreSettings : BasePreferenceFragment() {
|
||||
// backup and restore database
|
||||
private val getBackupFile = registerForActivityResult(ActivityResultContracts.GetContent()) {
|
||||
it?.let {
|
||||
lifecycleScope.launch(Dispatchers.IO) {
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
BackupHelper.restoreAdvancedBackup(requireContext(), it)
|
||||
}
|
||||
}
|
||||
}
|
||||
private val createBackupFile = registerForActivityResult(CreateDocument(JSON)) {
|
||||
it?.let {
|
||||
lifecycleScope.launch(Dispatchers.IO) {
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
BackupHelper.createAdvancedBackup(requireContext(), it, backupFile)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user