always load recent emoji keys right after creating recents keyboard, fixes #527

This commit is contained in:
Helium314 2024-03-03 15:13:11 +01:00
parent 4b52f2d51d
commit b263b96b96

View file

@ -153,8 +153,6 @@ final class EmojiCategory {
addShownCategoryId(EmojiCategory.ID_EMOTICONS);
DynamicGridKeyboard recentsKbd = getKeyboard(EmojiCategory.ID_RECENTS, 0);
recentsKbd.loadRecentKeys(mCategoryKeyboardMap.values());
mCurrentCategoryId = Settings.readLastShownEmojiCategoryId(mPrefs, defaultCategoryId);
mCurrentCategoryPageId = Settings.readLastShownEmojiCategoryPageId(mPrefs, 0);
if (!isShownCategoryId(mCurrentCategoryId)) {
@ -305,6 +303,7 @@ final class EmojiCategory {
mLayoutSet.getKeyboard(KeyboardId.ELEMENT_EMOJI_RECENTS),
mMaxRecentsKeyCount, categoryId, currentWidth);
mCategoryKeyboardMap.put(categoryKeyboardMapKey, kbd);
kbd.loadRecentKeys(mCategoryKeyboardMap.values());
return kbd;
}