Skip to content

Commit

Permalink
fix(account-sheet): properly check if the account is active
Browse files Browse the repository at this point in the history
I LOVE RACE CONDITIONS :D
  • Loading branch information
LucasGGamerM committed Jun 25, 2024
1 parent f8dbecc commit e8ce2a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public void onClick(){
return;
}
AccountSessionManager accountSessionManager=AccountSessionManager.getInstance();
if(accountSessionManager.tryGetAccount(item.getID())!=null && !Objects.equals(accountSessionManager.getLastActiveAccountID(), item.getID())){
if(accountSessionManager.tryGetAccount(item.getID())!=null && !view.isChecked()){
AccountSessionManager.getInstance().setLastActiveAccountID(item.getID());
((MainActivity)activity).restartActivity();
}
Expand Down

0 comments on commit e8ce2a7

Please sign in to comment.