icasdri / Mather

A powerful expression-based calculator, unit converter, and general computation engine for Android
GNU General Public License v3.0
58 stars 7 forks source link

Keyboard switcher sometimes fills screen with both keyboards #6

Open vanitasvitae opened 8 years ago

vanitasvitae commented 8 years ago

Hi When I have the built-in math keyboard open, press the "normal-keyboard-button" on the left to open androids keyboard, then press the back button on my phone, followed by a press the button on the left again to open the built-in keyboard again, I end up with both, androids and the built-in keyboard open, which occupies all the space on my screen.

icasdri commented 8 years ago

Thanks for the notice. I've been noticing this as well. I think it might be due to Mather's use of toggleSoftInput to control the Android keyboard. But it seems that none of the other methods Android provides do what we want. Somehow, we need to detect whether the Android keyboard is open before calling it to open. (instead of assuming it'll toggle as expected).

icasdri commented 7 years ago

The keyboard switcher seems to consistently screw up (instead of just sometimes) with some user-installed custom keyboards such as SwiftKey.

vanitasvitae commented 7 years ago

It's a pain to detect whether a keyboard is opened or not. WTF Google, u drunk? Its 2016!