2
0
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 (#3778)

* For #3381: Fix 'Remove account' returning app to home screen

* Remove unused import

* Move popBackStack() outside lifecycleScope instead
This commit is contained in:
Yeon Taek Jeong 2019-07-01 08:32:06 -07:00 committed by Sawyer Blatz
parent a4300fc3aa
commit 219b5f3d01

View File

@ -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
} }
} }