mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Make sure linear account select is up-to-date
This commit is contained in:
parent
a9f3f7bdf8
commit
411a2444ff
2 changed files with 3 additions and 1 deletions
|
@ -307,6 +307,8 @@ object AccountHelper {
|
||||||
|
|
||||||
recyclerView.setLinearListLayout(isHorizontal = true)
|
recyclerView.setLinearListLayout(isHorizontal = true)
|
||||||
|
|
||||||
|
viewModel.handleAccountUpdate(activity)
|
||||||
|
|
||||||
activity.observe(viewModel.accounts) { liveAccounts ->
|
activity.observe(viewModel.accounts) { liveAccounts ->
|
||||||
recyclerView.adapter = AccountAdapter(
|
recyclerView.adapter = AccountAdapter(
|
||||||
liveAccounts,
|
liveAccounts,
|
||||||
|
|
|
@ -34,7 +34,7 @@ class AccountSelectActivity : AppCompatActivity() {
|
||||||
)
|
)
|
||||||
|
|
||||||
val accounts = getAccounts(this@AccountSelectActivity)
|
val accounts = getAccounts(this@AccountSelectActivity)
|
||||||
|
|
||||||
// Don't show account selection if there is only
|
// Don't show account selection if there is only
|
||||||
// one account that exists
|
// one account that exists
|
||||||
if (!isEditingFromMainActivity && accounts.count() <= 1) {
|
if (!isEditingFromMainActivity && accounts.count() <= 1) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue