mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Don't show account selection if there is only one account that exists
This commit is contained in:
parent
25f9174ff1
commit
df92ad9655
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue