Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Galaxy E7 Duos 3G SM-E700H : On this device the soft keyboard and emoji pop are inflated together. #191

Closed
DalveerSinghDaiya opened this issue Aug 17, 2017 · 25 comments

Comments

@DalveerSinghDaiya
Copy link

DalveerSinghDaiya commented Aug 17, 2017

I have a Samsung galaxy E7 duos, while testing this library i found that the soft keyboard and emoji pop up are visible together. Is there a way or any workaround to handle this?
Coz its working on all the devices except this one.
I am attaching a screen shot to explain a bit more.

samsung e7


@vanniktech
Copy link
Owner

Hmm do other applications that do this kind of thing work? E.g. WhatsApp or telegram?

@DalveerSinghDaiya
Copy link
Author

Nopes!! Its working fine in WhatsApp and Telegram.

@vanniktech
Copy link
Owner

Hmmm :( that's not any good. I don't have the device at hand and in all the devices that I tested the library against (20+) devices. Are you willing to investigate this issue and maybe come up with a PR?

@DalveerSinghDaiya
Copy link
Author

I have tried some tricks but all for no good, its not working, that's why i filed it here, thought some one would have cracked this already.

@vanniktech
Copy link
Owner

Yeah as you probably know detecting whether or not the keyboard shown is non trivial especially when certain devices / manufacters do their own thing. Maybe someone will crack it.

@DalveerSinghDaiya
Copy link
Author

DalveerSinghDaiya commented Aug 17, 2017

Haha, I was expecting you to assign it to someone :P

@DalveerSinghDaiya
Copy link
Author

Did you find any solution??

@vanniktech
Copy link
Owner

Nope I'm also not actively looking into it. Feel free to take this one

@vanniktech
Copy link
Owner

Related to #224.

@DalveerSinghDaiya could you try the possible workarounds that were posted in that issue and see if that would resolve your issue?

@daniele-athome
Copy link

Despite I would really prefer to keep the current behavior, I would like to point out that Hangouts (meaning it's Google doing this) closes the keyboard before showing the emoji panel. It seems like they gave up eheh :-)
If you need help to test or code something to fix this, I'm here.

@vanniktech
Copy link
Owner

We need to show the keyboard in order to get the height.

@daniele-athome
Copy link

We need to show the keyboard in order to get the height.

Sure, I mean get the height and then close it. I believe that's what Hangouts does.

@vanniktech
Copy link
Owner

That sounds good. Happy to review an implementation for that.

@daniele-athome
Copy link

daniele-athome commented Feb 16, 2018

Now that I think more about it, it will become a simple EmojiView use case, meaning no EmojiPopup involved. By exposing EmojiView directly (and by implementing some helper code to use it), an app can add an EmojiView to its layout and hide the keyboard before showing it, using the appropriate height (the helper code could be used to do just that, leveraging the already implemented code in EmojiPopup used to calculate the height).
What do you say about exposing EmojiView to the world? Any other ideas or questions about this approach? I'd like to hear your opinion on that before start coding.

@danielgaribaldi
Copy link

Hi guys!

I'm having the same problem, both keyboards are shown at the same time on a Pixel 2XL with Android 8.1 using emoji-google:0.6.0-SNAPSHOT

issuw

Did you find a solution/workaround for this?

Thanks!

ps: beside this small problem the library is awesome! thanks!

@daniele-athome
Copy link

Did you find a solution/workaround for this?

Unfortunately not. I'm working on using EmojiView directly inside my layout and hide the virtual keyboard before showing the emoji panel.

@186538
Copy link

186538 commented Apr 7, 2018

the problem appears when another app uses the top level screen, try this ..
_ install esfile (https://play.google.com/store/apps/details?id=com.estrongs.android.pop)
_ activate "ES Swipe" feature

then you will get the emoji appears above the keyboard !!
this problem happens all the time with android P, i think it should be fixed as soon as possible

@danielgaribaldi
Copy link

danielgaribaldi commented Apr 7, 2018 via email

@chihung93
Copy link

chihung93 commented Sep 5, 2018

@danielgaribaldi thanks for the solution.
I've created a customized view for fixing this bug.
If anyone needs my code, just check out my GitHub or look out this class.

Github:
https://github.com/chihung93/Emoji

Customize view
https://github.com/chihung93/Emoji/blob/master/emoji/src/main/java/com/vanniktech/emoji/EmojiUniversal.java

P.s: Thanks @vanniktech @danielgaribaldi.

@vanniktech
Copy link
Owner

I've created a customized view for fixing this bug.

Instead of?

@chihung93
Copy link

@vanniktech : instead of EmojiPopup

@vanniktech
Copy link
Owner

And what do you use for displaying that custom Layout?

@chihung93
Copy link

@vanniktech : Yes. I just custom layout for fixing the problem with the popup.

@vanniktech
Copy link
Owner

#326 did a lot of good changes regarding this and I believe this should be closed now. Please let me know whether things have been fixed or not. In case they aren't I can reopen this.

@srivishnu888
Copy link

What is the solution for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants