Commit graph

1006 commits

Author SHA1 Message Date
Marc Durdin
ab2d0a8e7a maint(android): use KEYMAN_TIER instead of TIER.md
This is consistent with other version variables in build.gradle.
Encountered an issue with loading TIER.md with Android Studio Quail 1 |
2026.1.1 Patch 2 version, and this was an expedient workaround.

Test-bot: skip
2026-07-10 15:50:46 +02:00
Eberhard Beilharz
70282bfd5b
fix(android): rename method to getKeyboardTextFontFilenameOnly
Some checks failed
Keyman Build Summary / Summarize build status checks (push) Has been cancelled
This addresses a code review comment.
2026-07-03 17:26:05 +02:00
Eberhard Beilharz
1191e4387f
fix(android): fix setting font
PR #16146 introduced a problem with selecting a different font as
display font so that we always ended up with not setting the font.
This was caused by the font filenames now being a URL (which is necessary
because they get processed by the web engine). However, the Android code
checks for the existence of the font in order to create the typeface,
which only works for local paths.

This PR modifies and simplifies `KMKeyboard.getFontFilename` to return the
full path, renames `KMKeyboard.txtFont` and `KMKeyboard.oskFont` to make
it clearer that they contain a path and not a URL.

Also initialize `KMKeyboard.oskFontPath` with empty string instead of
`null`. This makes it consistent with` txtFontPath` and with the
documented behavior of `KMManager.getKeyboardOskFontFilename()` (which
returns `KMKeyboard.oskFontPath`).

Follows: #16146
Fixes: #16187
Build-bot: release:android
2026-07-02 19:52:35 +02:00
Eberhard Beilharz
64abd5b690
fix(android): fix loading of keyboards on Android
This change moves to using `WebViewAssetLoader` for loading files from
the device instead of using file:// URLs. This fixes the blank keyboard
problem reported in #16096 for Android.

Also make `KMKeyboard.getKeyboardRoot()` private, and rename public
`Keyboard.getKeyboardPath()` to private `Keyboard.getKeyboardUrl()`.

Part-of: #16096
2026-06-26 20:01:30 +02:00
Darcy Wong
13ba5c8f8e chore(android): Remove unused status vars 2026-03-09 08:20:17 +07:00
Darcy Wong
1db954a7fa chore(android): Cleanup unused extracted text 2026-03-04 14:09:57 +07:00
Darcy Wong
57cf8fd7fa chore(android): Remove unused var 2026-02-03 13:07:16 +07:00
Darcy Wong
72913ca402 chore(android): Cleanup logging statement 2026-02-02 09:34:17 +07:00
Darcy Wong
4654dfad9c refactor(android): Regenerate keyboard search URL when resuming 2026-02-02 09:32:21 +07:00
Darcy Wong
70b140ed35
Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2026-02-02 09:13:44 +07:00
Darcy Wong
bea9de2b33 fix(android): Cleanup to address review comments 2026-01-30 08:48:19 +07:00
Darcy Wong
03e69d03af chore(android): Merge remote-tracking branch 'origin/master' into feat/android/lang
# Keyman Conventional Commit suggestions:
#
# - Link to a Sentry issue with git trailer:
#     Fixes: _MODULE_-_ID_
# - Give credit to co-authors:
#     Co-authored-by: _Name_ <_email_>
# - Use imperative, present tense ('attach' not 'attaches', 'attached' etc)
# - Don't include a period at the end of the title
# - Always include a blank line before trailers
# - More: https://github.com/keymanapp/keyman/wiki/Pull-Request-and-Commit-workflow-notes
2026-01-30 07:10:58 +07:00
Darcy Wong
356ef54c86 chore(common): Update Crowdin strings for de 2026-01-29 16:38:12 +07:00
Darcy Wong
866c856b94 feat(android): Use current display language for keyboard search 2026-01-29 09:09:41 +07:00
Darcy Wong
665e82a104 chore(common): Update Crowdin strings for Italian 2026-01-13 09:37:15 +07:00
Darcy Wong
9f86141803 chore(android): Update crowdin strings 2026-01-08 11:37:26 +07:00
Darcy Wong
3bdb0694c3 chore(android): Download PT again 2025-12-19 06:19:59 +07:00
Darcy Wong
cbca7630e1 chore(common): Update crowdin strings for PT 2025-12-18 16:13:25 +07:00
Matthew Lee
2f9a321a24 Compressing 2 text boxes into one to save vertical space in the dialog. 2025-12-08 14:34:32 -05:00
Matthew Lee
929bd05459 back to rounding 2025-12-08 09:23:24 -05:00
Matthew Lee
f553ed8755 Ceiling and floor to make percentages change immediately. 2025-12-08 09:19:41 -05:00
Matthew Lee
c64b466667 Merge remote-tracking branch 'MattGyverLee/feat/grabbable-bar-and-feedback' into feat/grabbable-bar-and-feedback 2025-12-08 09:02:06 -05:00
Matthew Lee
781da520be context for calculateKeyboardHeightFromTouch 2025-12-08 08:57:14 -05:00
Matthew Lee
796bcf9a2b
Update android/KMAPro/kMAPro/src/main/java/com/tavultesoft/kmapro/AdjustKeyboardHeightActivity.java
Co-authored-by: Marc Durdin <marc@durdin.net>
2025-12-08 08:35:42 -05:00
Matthew Lee
dcd6ac019b
Update android/KMAPro/kMAPro/src/main/java/com/tavultesoft/kmapro/AdjustKeyboardHeightActivity.java
Co-authored-by: Marc Durdin <marc@durdin.net>
2025-12-08 08:34:58 -05:00
Matthew Lee
b72de3107a
Apply suggestion from @mcdurdin
Co-authored-by: Marc Durdin <marc@durdin.net>
2025-12-08 08:33:31 -05:00
Matthew Lee
8c4382bc73 Cutting spaghetti 2025-12-03 22:45:47 -05:00
Matthew Lee
a8e311fc8b simplifying string work 2025-12-03 22:21:15 -05:00
Matthew Lee
99d7dfa217 Cleanup 2025-12-03 21:55:35 -05:00
Matthew Lee
38319f1229 Resolving comments 2025-12-03 21:01:48 -05:00
Matthew Lee
37acf0e377 Reverting functions to the Activity. 2025-12-03 20:42:48 -05:00
Matthew Lee
811a94e30b Compressing 2 text boxes into one. 2025-12-02 16:33:06 -05:00
Matthew Lee
d955404307 Final Cleanup 2025-12-02 16:16:48 -05:00
Matthew Lee
6445a6bcb5 Adding grabbable bar and feedback 2025-12-01 15:47:18 -05:00
Marc Durdin
307f600f43
Merge pull request #13663 from MattGyverLee/feat/android/keyboard-min-max
fix(android): address keyboard height vs touch height race after keyboard height preference change (also min max heights + docs)
2025-12-01 14:22:25 +01:00
Darcy Wong
d89e90a404
Merge branch 'master' into chore/android/sendCurrentFontName 2025-12-01 08:46:29 +07:00
Nnyny
e215603146 fix: change intent ID 2025-11-24 13:50:26 +07:00
Matthew Lee
6be82ac9b8 Adding Docs for getKeyboardHeightMin/max & updating webview height
Handling invalid orientations

updating orientation logic

refresh webview height if ApplyKeyboardHeight() has been applied without KB active

I ran into a bug building this code into app-builders and fixed it downstream. This commit pushes it upstream.

While resize dialog is open:
- Keyboard WebView is NOT loaded (isKeyboardLoaded() == false)
- ACTION_UP saves to SharedPreferences:  Works
 -But skips WebView layout update:  Because keyboard not loaded
 - User exits dialog, keyboard appears:
    - If the keyboard WebView loads and reads from SharedPreferences properly:  Works
    - But if there's a timing issue or the WebView had old layout params cached:  Touch zone mismatch
2025-11-21 14:50:03 -06:00
Nnyny
3264557bef chore: add intent to broadcast font name 2025-11-20 12:44:59 +07:00
Darcy Wong
9201baa65b fix(android): Use Alert DIalog if keyboard pkg missing js files
Fixes: #15097

Fixes: KEYMAN-ANDROID-251
2025-11-05 09:49:21 +07:00
Darcy Wong
3fa69fe663 fix(android): Only apply statusBarHeight in portrait orientation 2025-10-20 10:05:23 +07:00
Darcy Wong
9d32743d3a fix(android): Let textView overflow under keyboard 2025-10-20 09:34:21 +07:00
Darcy Wong
968e8b8695 fix(android): Set the app background white 2025-10-10 14:52:10 +07:00
Darcy Wong
7a4484dbc9
Merge pull request #14873 from keymanapp/fix/android/extra-bar
fix(android): Refactor bottom inset calculations for in-app and system keyboard
2025-10-09 06:41:34 +07:00
Darcy Wong
92308dc601 fix(android): Convert longpress delay menu to ConstraintLayout 2025-10-07 14:31:49 +07:00
Darcy Wong
329125a1b1 fix(android): Separate bottom insets for in-app and system keyboard 2025-10-07 13:29:46 +07:00
Darcy Wong
0e2011eca8 chore(android): Cleanup code 2025-10-07 10:24:22 +07:00
Darcy Wong
295dfd9e92 test(android): Adjust system keyboard insets 2025-10-07 08:36:20 +07:00
Darcy Wong
5aee77d5a8 fix(android): Use a toggle for adjusting the navigation bar height 2025-10-06 11:05:24 +07:00
Darcy Wong
22f63ccfdd fix(android): Try to factor in gesture insets 2025-10-01 15:45:37 +07:00