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)
|
showPreview(NOT_A_KEY)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
keyboardViewBinding?.emojiPaletteHolder?.beGone()
|
||||||
closeClipboardManager()
|
closeClipboardManager()
|
||||||
removeMessages()
|
removeMessages()
|
||||||
mKeyboard = keyboard
|
mKeyboard = keyboard
|
||||||
|
@ -1583,10 +1584,12 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
|
||||||
|
|
||||||
|
|
||||||
if(emojiPaletteHolder.isVisible){
|
if(emojiPaletteHolder.isVisible){
|
||||||
|
Log.i("thisISsRUNN","YESS")
|
||||||
emojiPaletteHolder.beGone()
|
emojiPaletteHolder.beGone()
|
||||||
emojiSearchToolbar.beGone()
|
emojiSearchToolbar.beGone()
|
||||||
mainToolbarKeyboardHolder.beVisible()
|
mainToolbarKeyboardHolder.beVisible()
|
||||||
}else{
|
}else{
|
||||||
|
Log.i("thisISsRUNN","YESS2")
|
||||||
emojiSearchView.clearFocus()
|
emojiSearchView.clearFocus()
|
||||||
emojiSearchView.text.clear()
|
emojiSearchView.text.clear()
|
||||||
emojiPaletteHolder.beVisible()
|
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*/
|
/*here is emoji is get from the bundle and send to recycler view*/
|
||||||
fun buildEmojiPickerItems(onlyRecentEmojies: Boolean = false, description: String?=null ) :EmojiPickerItems{
|
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){
|
if(!usedInSearchResult){
|
||||||
return EmojiPickerItems(
|
return EmojiPickerItems(
|
||||||
buildList {
|
buildList {
|
||||||
|
|
Loading…
Reference in New Issue