-
-
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): Always display HTML banner when suggestions aren't available #9696
Conversation
Toggle from suggestion to image banner
User Test ResultsTest specification and instructions
Test Artifacts |
…/android/image-banner
…/android/image-banner
@bharanidharanj caught that the banner doesn't refresh when KeymanWeb reloads. I've added a commit to fix Keyman and FV apps. @keymanapp-test-bot retest TEST_KEYMAN_PHONE |
@darcywong00 Okay, Thanks. |
@bharanidharanj - I cannot repro the blank banners you saw. Did find a typo and pushed an update. @keymanapp-test-bot retest |
@darcywong00 Yes, Darcy. I have uninstalled the previous apps and deleted the previous apk files before the retest. I am getting this error (black banner) when I opened the keyman keyboard (as a system keyboard) in the browser view. Anyhow, I will retest it. Thanks. |
Changes in this pull request will be available for download in Keyman version 17.0.213-alpha |
Follows #9591 in fixing #9573
With the move to web-based popup key longpresses, Keyman for Android needs to display an
imageHTML banner for keyboards w/o suggestions. This allows the popup keys to then be displayed in the banner.Change to KeymanWeb
* On Android device, default to image banner with a black banner "theme".Change to Keyman Engine for Android
KMManager.setHTMLBanner()
allows developers to pass an HTML blob to use for the banner.Change to Keyman for Android
Change to FV for Android
TODO
Current limitations
I'm using the Keyman landscape png as generated by https://elmah.io/tools/base64-image-encoder/There's notificable distortion as the Android app doesn't do computations like the iOS image banner.
Perhaps this can all be moved to KeymanWeb?
This is now resolved using svg within the HTML blob.
Original Screenshots
(edited) These are all obsolete with the svg/html refactor
In-app keyboard
white image banner when suggestions not available
System keyboard
Keyman banner when suggestions not available
Keyman banner in landscape
KMSample2
Test app with Tamil dictionary temporarily disabled to show custom light-blue theme
FV for Android
User Testing
Setup - Install the PR build of the corresponding Android app on an Android device/emulator of SDK 21