fix single account hidden

This commit is contained in:
vivabelarus 2022-12-08 17:03:46 +03:00
parent b2aff86989
commit ca80bfb5cb
No known key found for this signature in database
GPG key ID: D8D8542F5B70C314

View file

@ -393,11 +393,11 @@ public class FakePasscode {
}
private void checkSingleAccountHidden() {
if (UserConfig.getActivatedAccountsCount(true) == 1 && getHideOrLogOutCount() == 1) {
if (UserConfig.getActivatedAccountsCount(true) == 1 && getHideAccountCount() == 1) {
for (int a = 0; a < UserConfig.MAX_ACCOUNT_COUNT; a++) {
if (AccountInstance.getInstance(a).getUserConfig().isClientActivated()) {
AccountActions accountActions = getAccountActions(a);
if (accountActions != null) {
if (accountActions != null && accountActions.isHideAccount()) {
accountActions.toggleHideAccountAction();
}
}