fixed invalid account condition
This commit is contained in:
parent
c86c9eb79a
commit
e5cd398af3
|
@ -116,7 +116,7 @@ fun Account.isOfficial(am: AccountManager, context: Context): Boolean {
|
|||
fun AccountManager.hasInvalidAccount(): Boolean {
|
||||
val accounts = AccountUtils.getAccounts(this)
|
||||
if (accounts.isEmpty()) return false
|
||||
return accounts.none { isAccountValid(it) }
|
||||
return accounts.any { !isAccountValid(it) }
|
||||
}
|
||||
|
||||
fun AccountManager.isAccountValid(account: Account): Boolean {
|
||||
|
|
Loading…
Reference in New Issue