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.
This commit is contained in:
Sourabh 2019-08-13 14:28:34 -07:00 committed by Colin Lee
parent 5aac05859d
commit 42e3b2771e
1 changed files with 6 additions and 4 deletions

View File

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