mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-15 18:12:54 +00:00
* For #3381: Fix 'Remove account' returning app to home screen * Remove unused import * Move popBackStack() outside lifecycleScope instead
This commit is contained in:
parent
a4300fc3aa
commit
219b5f3d01
@ -69,8 +69,8 @@ class AccountProblemFragment : PreferenceFragmentCompat(), AccountObserver {
|
|||||||
return Preference.OnPreferenceClickListener {
|
return Preference.OnPreferenceClickListener {
|
||||||
lifecycleScope.launch {
|
lifecycleScope.launch {
|
||||||
requireComponents.backgroundServices.accountManager.logoutAsync().await()
|
requireComponents.backgroundServices.accountManager.logoutAsync().await()
|
||||||
Navigation.findNavController(view!!).popBackStack()
|
|
||||||
}
|
}
|
||||||
|
Navigation.findNavController(view!!).popBackStack()
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user