We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8f901ee + fb94ed9 commit 266f1e8Copy full SHA for 266f1e8
app/src/main/java/com/github/libretube/ui/preferences/InstanceSettings.kt
@@ -126,6 +126,13 @@ class InstanceSettings : BasePreferenceFragment() {
126
.show(childFragmentManager, DeleteAccountDialog::class.java.name)
127
true
128
}
129
+
130
+ findPreference<SwitchPreferenceCompat>(PreferenceKeys.FULL_LOCAL_MODE)?.setOnPreferenceChangeListener { _, newValue ->
131
+ // when the full local mode gets enabled, the fetch instance is no longer used and replaced
132
+ // fully by local extraction. thus, the user has to be logged out from the fetch instance
133
+ if (newValue == true && !authInstanceToggle.isChecked) logoutAndUpdateUI()
134
+ true
135
+ }
136
137
138
private suspend fun initInstancesPref(
0 commit comments