fix #4633: show toast only on first login (#4676)

This is a very low-risk PR, which should not require a rebase to deal with the scope issue today in TaskCluster.
nightly-build-test
Sourabh 5 years ago committed by Colin Lee
parent 5aac05859d
commit 42e3b2771e

@ -740,10 +740,12 @@ class HomeFragment : Fragment(), AccountObserver {
}
override fun onAuthenticated(account: OAuthAccount, newAccount: Boolean) {
view?.let {
FenixSnackbar.make(it, Snackbar.LENGTH_SHORT).setText(
it.context.getString(R.string.onboarding_firefox_account_sync_is_on)
).show()
if (newAccount) {
view?.let {
FenixSnackbar.make(it, Snackbar.LENGTH_SHORT).setText(
it.context.getString(R.string.onboarding_firefox_account_sync_is_on)
).show()
}
}
emitModeChanges()
}

Loading…
Cancel
Save