mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
Check all backup options by default
This commit is contained in:
parent
1a4b3e5a1c
commit
d2cbe12723
@ -44,8 +44,8 @@ class BackupDialog(
|
|||||||
it.localPlaylists = Database.localPlaylistsDao().getAll()
|
it.localPlaylists = Database.localPlaylistsDao().getAll()
|
||||||
})
|
})
|
||||||
|
|
||||||
object Preferences : BackupOption(R.string.preferences, onSelected = {
|
object Preferences : BackupOption(R.string.preferences, onSelected = { file ->
|
||||||
it.preferences = PreferenceHelper.settings.all.map {
|
file.preferences = PreferenceHelper.settings.all.map {
|
||||||
PreferenceItem(it.key, it.value)
|
PreferenceItem(it.key, it.value)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -64,7 +64,7 @@ class BackupDialog(
|
|||||||
|
|
||||||
val backupItems = backupOptions.map { context?.getString(it.name)!! }.toTypedArray()
|
val backupItems = backupOptions.map { context?.getString(it.name)!! }.toTypedArray()
|
||||||
|
|
||||||
val selected = BooleanArray(backupOptions.size) { false }
|
val selected = BooleanArray(backupOptions.size) { true }
|
||||||
|
|
||||||
return MaterialAlertDialogBuilder(requireContext())
|
return MaterialAlertDialogBuilder(requireContext())
|
||||||
.setTitle(R.string.backup)
|
.setTitle(R.string.backup)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user