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

Keyboard portrait height showing in landscape mode #437

Open
adnanchohan opened this issue Jan 24, 2024 · 0 comments
Open

Keyboard portrait height showing in landscape mode #437

adnanchohan opened this issue Jan 24, 2024 · 0 comments

Comments

@adnanchohan
Copy link

adnanchohan commented Jan 24, 2024

There's something wrong with the new update of Gboard, happening in Android 13 and 14 only. It is disturbing my custom keyboard's dimensions on orientation changes. The same thing is happening in your app also (I cloned your simple keyboard and tested it on the master). I've been searching for the bug but haven't found it yet.

Steps to reproduce:

  1. Enable Simple Keybaord First then switch to gboard and rotate your device to landscape and portrait.
  2. Switch back to Simple Keyboard and rotate the device to landscape you'll see that the height of the keyboard is freezing, actually showing portrait height in landscape mode.

Tested on Google Pixel 6a (Android 14, API 34)
Before:

before

After:
after

for your reference affected class is KeyboardView.Java just try to log orientation from getResources() in onMeasure() Method, you'll see that the Orientation is getting stuck at portrait.

Due to this Gbaord Feature: https://www.androidpolice.com/gboard-auto-floating-landscape-layout/#:~:text=Google's%20Gboard%20app%20for%20Android,holding%20your%20phone%20upright%20again.

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

No branches or pull requests

1 participant