For #2905: Remove device name during sync logout

nightly-build-test
Jonathan Almeida 5 years ago committed by Jonathan Almeida
parent f71bdcfd10
commit 1b7a9817e2

@ -59,6 +59,12 @@ class AccountSettingsFragment : PreferenceFragmentCompat(), CoroutineScope {
override fun onLoggedOut() {
launch {
Navigation.findNavController(view!!).popBackStack()
// Remove the device name when we log out.
context?.let {
val deviceNameKey = it.getPreferenceKey(R.string.pref_key_sync_device_name)
preferenceManager.sharedPreferences.edit().remove(deviceNameKey).apply()
}
}
}

Loading…
Cancel
Save