fixed enabled accounts check in onCreate
This commit is contained in:
parent
ce8c7d887d
commit
caf5fcad88
|
@ -2538,12 +2538,15 @@ public class XmppConnectionService extends Service {
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean hasEnabledAccounts() {
|
private boolean hasEnabledAccounts() {
|
||||||
for (Account account : this.accounts) {
|
if (this.accounts == null) {
|
||||||
if (account.isEnabled()) {
|
return false;
|
||||||
return true;
|
}
|
||||||
}
|
for (Account account : this.accounts) {
|
||||||
}
|
if (account.isEnabled()) {
|
||||||
return false;
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue