mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-14 14:02:44 +00:00
always load recent emoji keys right after creating recents keyboard, fixes #527
This commit is contained in:
parent
4b52f2d51d
commit
b263b96b96
1 changed files with 1 additions and 2 deletions
|
@ -153,8 +153,6 @@ final class EmojiCategory {
|
||||||
addShownCategoryId(EmojiCategory.ID_EMOTICONS);
|
addShownCategoryId(EmojiCategory.ID_EMOTICONS);
|
||||||
|
|
||||||
DynamicGridKeyboard recentsKbd = getKeyboard(EmojiCategory.ID_RECENTS, 0);
|
DynamicGridKeyboard recentsKbd = getKeyboard(EmojiCategory.ID_RECENTS, 0);
|
||||||
recentsKbd.loadRecentKeys(mCategoryKeyboardMap.values());
|
|
||||||
|
|
||||||
mCurrentCategoryId = Settings.readLastShownEmojiCategoryId(mPrefs, defaultCategoryId);
|
mCurrentCategoryId = Settings.readLastShownEmojiCategoryId(mPrefs, defaultCategoryId);
|
||||||
mCurrentCategoryPageId = Settings.readLastShownEmojiCategoryPageId(mPrefs, 0);
|
mCurrentCategoryPageId = Settings.readLastShownEmojiCategoryPageId(mPrefs, 0);
|
||||||
if (!isShownCategoryId(mCurrentCategoryId)) {
|
if (!isShownCategoryId(mCurrentCategoryId)) {
|
||||||
|
@ -305,6 +303,7 @@ final class EmojiCategory {
|
||||||
mLayoutSet.getKeyboard(KeyboardId.ELEMENT_EMOJI_RECENTS),
|
mLayoutSet.getKeyboard(KeyboardId.ELEMENT_EMOJI_RECENTS),
|
||||||
mMaxRecentsKeyCount, categoryId, currentWidth);
|
mMaxRecentsKeyCount, categoryId, currentWidth);
|
||||||
mCategoryKeyboardMap.put(categoryKeyboardMapKey, kbd);
|
mCategoryKeyboardMap.put(categoryKeyboardMapKey, kbd);
|
||||||
|
kbd.loadRecentKeys(mCategoryKeyboardMap.values());
|
||||||
return kbd;
|
return kbd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue