mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
fix some backup stuff
This commit is contained in:
parent
373acbf8b9
commit
11fc6fd1f2
@ -50,13 +50,14 @@ class AdvancedSettings : MaterialPreferenceFragment() {
|
||||
val backupSettings = findPreference<Preference>(PreferenceKeys.BACKUP_SETTINGS)
|
||||
backupSettings?.setOnPreferenceClickListener {
|
||||
createFile.launch("preferences.xml")
|
||||
activity?.recreate()
|
||||
true
|
||||
}
|
||||
|
||||
val restoreSettings = findPreference<Preference>(PreferenceKeys.RESTORE_SETTINGS)
|
||||
restoreSettings?.setOnPreferenceClickListener {
|
||||
getContent.launch("*/*")
|
||||
// reset the token
|
||||
PreferenceHelper.setToken("")
|
||||
activity?.recreate()
|
||||
true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user