fixed enabled accounts check in onCreate

This commit is contained in:
Daniel Gultsch 2019-01-13 22:18:32 +01:00
parent ce8c7d887d
commit caf5fcad88
1 changed files with 9 additions and 6 deletions

View File

@ -2538,6 +2538,9 @@ public class XmppConnectionService extends Service {
}
private boolean hasEnabledAccounts() {
if (this.accounts == null) {
return false;
}
for (Account account : this.accounts) {
if (account.isEnabled()) {
return true;