From 11fc6fd1f22948ea3c050366c4364952c8e13ba4 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sat, 13 Aug 2022 19:24:54 +0200 Subject: [PATCH] fix some backup stuff --- .../java/com/github/libretube/preferences/AdvancedSettings.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/libretube/preferences/AdvancedSettings.kt b/app/src/main/java/com/github/libretube/preferences/AdvancedSettings.kt index 00a3da32d..c9be42825 100644 --- a/app/src/main/java/com/github/libretube/preferences/AdvancedSettings.kt +++ b/app/src/main/java/com/github/libretube/preferences/AdvancedSettings.kt @@ -50,13 +50,14 @@ class AdvancedSettings : MaterialPreferenceFragment() { val backupSettings = findPreference(PreferenceKeys.BACKUP_SETTINGS) backupSettings?.setOnPreferenceClickListener { createFile.launch("preferences.xml") - activity?.recreate() true } val restoreSettings = findPreference(PreferenceKeys.RESTORE_SETTINGS) restoreSettings?.setOnPreferenceClickListener { getContent.launch("*/*") + // reset the token + PreferenceHelper.setToken("") activity?.recreate() true }