1
0
Fork 0

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.
master
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) { override fun onAuthenticated(account: OAuthAccount, newAccount: Boolean) {
view?.let { if (newAccount) {
FenixSnackbar.make(it, Snackbar.LENGTH_SHORT).setText( view?.let {
it.context.getString(R.string.onboarding_firefox_account_sync_is_on) FenixSnackbar.make(it, Snackbar.LENGTH_SHORT).setText(
).show() it.context.getString(R.string.onboarding_firefox_account_sync_is_on)
).show()
}
} }
emitModeChanges() emitModeChanges()
} }