refactor: fixes 2 crashes

I dont wanna write a decent commit message today
This commit is contained in:
LucasGGamerM
2023-08-24 08:07:15 -03:00
parent e8138685a8
commit 3db74fb958
2 changed files with 17 additions and 16 deletions

View File

@@ -72,7 +72,7 @@ public class CustomEmojiPopupKeyboard extends PopupKeyboard implements HasAccoun
private MergeRecyclerAdapter adapter=new MergeRecyclerAdapter();
private String domain;
private String accountID;
private Map<String, Integer> recentEmojis = AccountSessionManager.get(accountID).getLocalPreferences().recentEmojis;
private Map<String, Integer> recentEmojis;
private int spanCount=6;
private Listener listener;
@@ -90,6 +90,7 @@ public class CustomEmojiPopupKeyboard extends PopupKeyboard implements HasAccoun
this.domain=domain;
this.accountID=accountID;
this.forReaction=forReaction;
recentEmojis = AccountSessionManager.get(accountID).getLocalPreferences().recentEmojis;
}
@Override