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

fix(web): Null check for calculating globe key position #5724

Merged
merged 1 commit into from
Sep 21, 2021

Conversation

darcywong00
Copy link
Contributor

@darcywong00 darcywong00 commented Sep 20, 2021

Fixes #5725 and Sentry issue #4292

Uncaught TypeError: Cannot read property 'lgKey' of null

User Testing

Load the PR build in an Android 5.1 or Android 6.0 emulator

  • TEST_GLOBE Tests that there's no exceptions getting the globe key position
  1. Start the app in portrait orientation
  2. Verify no Toast notifications appear about keyboard error
  3. Rotate the device between portrait and landscape orientation several times
  4. Verify after each rotation no keyboard errors appear

@keymanapp-test-bot keymanapp-test-bot bot added the user-test-missing User tests have not yet been defined for the PR label Sep 20, 2021
@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Sep 20, 2021

User Test Results

  • TEST_GLOBE (PASSED): No keyboard error appears before and after each rotation on both Android 5.1 and 6.0.

@darcywong00 darcywong00 added this to the A15S14 milestone Sep 20, 2021
@keymanapp-test-bot keymanapp-test-bot bot added user-test-required User tests have not been completed and removed user-test-missing User tests have not yet been defined for the PR labels Sep 20, 2021
@darcywong00 darcywong00 marked this pull request as ready for review September 20, 2021 07:58
@MakaraSok
Copy link
Collaborator

TEST_GLOBE: PASSED No keyboard error appears before and after each rotation on both Android 5.1 and 6.0.

@keymanapp-test-bot keymanapp-test-bot bot removed the user-test-required User tests have not been completed label Sep 21, 2021
@darcywong00 darcywong00 merged commit 0a743a7 into master Sep 21, 2021
@darcywong00 darcywong00 deleted the fix/web/lg-key-null branch September 21, 2021 10:33
@keyman-server
Copy link
Collaborator

Changes in this pull request will be available for download in Keyman version 15.0.116-alpha

@jahorton
Copy link
Contributor

And it seems that this may be the fix for the last user-test issues Makara had noted on my ✂️ PRs. I wish I'd noticed it earlier!

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

Successfully merging this pull request may close these issues.

bug(web): Uncaught TypeError: Cannot read property 'lgKey' of null
5 participants