fix emojiPaletteHolder is open as open whenever new keyboard is called

This commit is contained in:
DumperTag 2024-09-04 14:38:53 +05:30
parent 62b91f8436
commit ecee01859e
2 changed files with 4 additions and 1 deletions

View File

@ -279,6 +279,7 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
showPreview(NOT_A_KEY)
}
keyboardViewBinding?.emojiPaletteHolder?.beGone()
closeClipboardManager()
removeMessages()
mKeyboard = keyboard
@ -1583,10 +1584,12 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
if(emojiPaletteHolder.isVisible){
Log.i("thisISsRUNN","YESS")
emojiPaletteHolder.beGone()
emojiSearchToolbar.beGone()
mainToolbarKeyboardHolder.beVisible()
}else{
Log.i("thisISsRUNN","YESS2")
emojiSearchView.clearFocus()
emojiSearchView.text.clear()
emojiPaletteHolder.beVisible()

View File

@ -167,7 +167,7 @@ constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
/*here is emoji is get from the bundle and send to recycler view*/
fun buildEmojiPickerItems(onlyRecentEmojies: Boolean = false, description: String?=null ) :EmojiPickerItems{
//used in search result usualy assign in the xml file when created a emojiPicker view
if(!usedInSearchResult){
return EmojiPickerItems(
buildList {