mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
Don't call promptForServerPasswords() if we already know all passwords
This commit is contained in:
parent
d6c03de6f5
commit
6d9463801e
@ -1383,11 +1383,15 @@ public class Accounts extends K9ListActivity implements OnItemClickListener, OnC
|
|||||||
List<Account> disabledAccounts = new ArrayList<Account>();
|
List<Account> disabledAccounts = new ArrayList<Account>();
|
||||||
for (AccountDescriptionPair accountPair : mImportResults.importedAccounts) {
|
for (AccountDescriptionPair accountPair : mImportResults.importedAccounts) {
|
||||||
Account account = preferences.getAccount(accountPair.imported.uuid);
|
Account account = preferences.getAccount(accountPair.imported.uuid);
|
||||||
if (!account.isEnabled()) {
|
if (account != null && !account.isEnabled()) {
|
||||||
disabledAccounts.add(account);
|
disabledAccounts.add(account);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
activity.promptForServerPasswords(disabledAccounts);
|
if (disabledAccounts.size() > 0) {
|
||||||
|
activity.promptForServerPasswords(disabledAccounts);
|
||||||
|
} else {
|
||||||
|
activity.setNonConfigurationInstance(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user