fix account

This commit is contained in:
luvletter2333 2021-06-27 20:11:55 +08:00
parent a7380ee9f2
commit 76b408ab98
No known key found for this signature in database
GPG Key ID: BFD68B892BECC1D8
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ public class ImportingService extends Service implements NotificationCenter.Noti
}
private boolean hasImportingStickers() {
for (int a = 0; a < UserConfig.MAX_ACCOUNT_COUNT; a++) {
for(int a : SharedConfig.activeAccounts){
if (SendMessagesHelper.getInstance(a).isImportingStickers()) {
return true;
}

View File

@ -23,7 +23,7 @@ import java.util.Arrays;
public class UserConfig extends BaseController {
public static int selectedAccount;
public final static int MAX_ACCOUNT_COUNT = 16;
//public final static int MAX_ACCOUNT_COUNT = 16;
private final Object sync = new Object();
private boolean configLoaded;