fix emojiPaletteHolder is open as open whenever new keyboard is called
This commit is contained in:
parent
62b91f8436
commit
ecee01859e
|
@ -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()
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue