Don't show account selection if there is only one account that exists

This commit is contained in:
Luna712 2023-10-29 17:43:08 -06:00
parent 25f9174ff1
commit df92ad9655

View file

@ -29,6 +29,13 @@ class AccountSelectActivity : AppCompatActivity() {
val accounts = getAccounts(this@AccountSelectActivity)
// Don't show account selection if there is only
// one account that exists
if (accounts.count() <= 1) {
navigateToMainActivity()
return
}
val adapter = AccountAdapter(accounts) { selectedAccount ->
// Handle the selected account
onAccountSelected(selectedAccount)