Make sure linear account select is up-to-date

This commit is contained in:
Luna712 2023-11-04 13:12:15 -06:00
parent a9f3f7bdf8
commit 411a2444ff
2 changed files with 3 additions and 1 deletions

View file

@ -307,6 +307,8 @@ object AccountHelper {
recyclerView.setLinearListLayout(isHorizontal = true)
viewModel.handleAccountUpdate(activity)
activity.observe(viewModel.accounts) { liveAccounts ->
recyclerView.adapter = AccountAdapter(
liveAccounts,

View file

@ -34,7 +34,7 @@ class AccountSelectActivity : AppCompatActivity() {
)
val accounts = getAccounts(this@AccountSelectActivity)
// Don't show account selection if there is only
// one account that exists
if (!isEditingFromMainActivity && accounts.count() <= 1) {