For #2327: Fix early return from displayAccountError
parent
7fff475fd8
commit
5e0771a6f0
|
@ -411,7 +411,7 @@ class SettingsFragment : PreferenceFragmentCompat(), CoroutineScope, AccountObse
|
||||||
private fun displayAccountErrorIfNecessary() {
|
private fun displayAccountErrorIfNecessary() {
|
||||||
launch {
|
launch {
|
||||||
context?.let { context ->
|
context?.let { context ->
|
||||||
if (context.components.backgroundServices.accountManager.accountNeedsReauth()) { return@launch }
|
if (!context.components.backgroundServices.accountManager.accountNeedsReauth()) { return@launch }
|
||||||
|
|
||||||
val preferenceFirefoxAccount =
|
val preferenceFirefoxAccount =
|
||||||
findPreference<AccountPreference>(context.getPreferenceKey(pref_key_account))
|
findPreference<AccountPreference>(context.getPreferenceKey(pref_key_account))
|
||||||
|
|
Loading…
Reference in New Issue