-
-
Notifications
You must be signed in to change notification settings - Fork 111
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(android): no suggestions available when swapping pred-text target language ✨ #10061
Conversation
User Test ResultsTest specification and instructions
Test Artifacts
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we've removed the isModelActive
flag because the banner is always intended to be visible?
I don't really understand how change to languageProcessor.ts addresses the issue. Can you elaborate?
One change requested -- further cleanup with the removal of change
parameter 😁
android/KMEA/app/src/main/java/com/keyman/engine/KMKeyboardWebViewClient.java
Show resolved
Hide resolved
if(change != 'configured') { // doesn't change the display; only initiates suggestions. | ||
window.location.hash = 'refreshBannerHeight-'+fragmentToggle+'+change='+change; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So 'configured' will also trigger a refreshBannerHeight now, is that okay?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I guess I did misread it slightly. Thought that it only affected the value of change
sent in the message for some reason.
Should be fine anyway, but... 🤷
Test Results
|
Changes in this pull request will be available for download in Keyman version 17.0.221-alpha |
Addresses the issue documented here: #10017 (comment)
The net effect of that issue is that suggestions would appear to be disabled upon swapping to a language with an different 'dictionary' from the most recently-used one.
The full documentation of the underlying cause can be found in that linked comment, but the essence of it is that the banner can't display any suggestions because it's constantly being deactivated and reactivated. This is also generally considered "not good" for performance and device batteries.
User Testing
TEST_PICKER_SELECTION_ANDROID: Ensure suggestions are properly displayed after swapping keyboards with different language models.
TEST_PICKER_SELECTION_IOS: Ensure suggestions are properly displayed after swapping keyboards with different language models.