Commit graph

1869 commits

Author SHA1 Message Date
Darcy Wong
d66ecec73d fix(android): Address review comments
* Move Espanol back
* Capitalize Svwnska (Swedish)
2026-04-22 13:53:00 +07:00
Darcy Wong
ded6e1c6f3 fix(android): Reorder display language list 2026-04-22 10:42:37 +07:00
Darcy Wong
356ef54c86 chore(common): Update Crowdin strings for de 2026-01-29 16:38:12 +07:00
Darcy Wong
cbca7630e1 chore(common): Update crowdin strings for PT 2025-12-18 16:13:25 +07:00
Matthew Lee
8bcf03cb1e
Update android/KMEA/app/src/main/java/com/keyman/engine/KMManager.java
Co-authored-by: Marc Durdin <marc@durdin.net>
2025-11-25 02:35:58 -06:00
Claude
99704c4ec2
fix(android): resolve PR review comments for keyboard height min/max
Addresses review feedback from Marc and Darcy:

- Add JavaDoc comments to getKeyboardHeightMin() and getKeyboardHeightMax()
  explaining the purpose, parameters, and return values
- Implement separate pending height tracking per keyboard type (in-app/system)
  and orientation (portrait/landscape) instead of a single flag
- Add four preference keys following KMKey_ naming convention:
  KMKey_PendingHeightUpdate_InappPortrait, KMKey_PendingHeightUpdate_InappLandscape,
  KMKey_PendingHeightUpdate_SystemPortrait, KMKey_PendingHeightUpdate_SystemLandscape
- Create helper function getPendingHeightKey() to determine the correct key
- Create setPendingHeightUpdate() and getAndClearPendingHeightUpdate() functions
- Fix applyKeyboardHeight() to use new helper functions and remove broken
  heightApplied variable and duplicate pending height logic
- Update KMKeyboard.onResume() to use getAndClearPendingHeightUpdate()
- Add documentation links for getKeyboardHeightMin and getKeyboardHeightMax
  in index.md
2025-11-24 23:14:52 +00:00
Matthew Lee
3ed2d4a21e
Update android/KMEA/app/src/main/java/com/keyman/engine/KMManager.java
Co-authored-by: Marc Durdin <marc@durdin.net>
2025-11-24 01:10:05 -06:00
Matthew Lee
1662802bd5
Update android/KMEA/app/src/main/java/com/keyman/engine/KMManager.java
Co-authored-by: Marc Durdin <marc@durdin.net>
2025-11-22 02:35:00 -06:00
Matthew Lee
3962d5795d
Update android/KMEA/app/src/main/java/com/keyman/engine/KMManager.java
Co-authored-by: Marc Durdin <marc@durdin.net>
2025-11-22 02:34:49 -06: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
Darcy Wong
c38f488986 chore(common): Update crowdin strings for Vietnamese 2025-10-09 11:40:18 +07:00
Darcy Wong
499e427b8e fix(android): Fallback to legacy calculation when not initialized 2025-10-08 15:23:33 +07:00
Darcy Wong
eda50b2232 chore(android): Remove unused insets 2025-10-07 14:11:09 +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
65a631b53d test(android): Experiment with insets 2025-10-04 09:43:49 +07:00
Darcy Wong
3249f75b40 fix(android): Use max of gesture and navigation bar height 2025-10-03 13:02:21 +07:00
Darcy Wong
942723dad8 chore(android): Cleanup missing change 2025-10-03 11:25:23 +07:00
Darcy Wong
dd6a1aaf00 fix(android): Revert to using systemBars() 2025-10-03 09:02:53 +07:00
Darcy Wong
c9cc466e09 fix(android): Don't assume landscape inset 0 2025-10-02 14:41:03 +07:00
Darcy Wong
6820718d44 fix(android): Check visibility flags to determine which insets used 2025-10-02 14:02:45 +07:00
Darcy Wong
f1ad3ec4d1 fix(android): Use gestureInsets dimension when visible 2025-10-02 07:29:42 +07:00
Darcy Wong
22f63ccfdd fix(android): Try to factor in gesture insets 2025-10-01 15:45:37 +07:00
Darcy Wong
f3d9b1a2ab fix(android): Update calculation of navigation bar 2025-10-01 14:19:22 +07:00
Darcy Wong
8af7803839 fix(android): Adjust top insets for the navigation bar inset 2025-09-25 10:39:06 +07:00
Darcy Wong
0a91f50fcc fix(android): Move setting system keyboard insets to KMManager 2025-09-24 13:05:34 +07:00
Darcy Wong
ddc994857d fix(android): Fix the alignment 2025-09-24 08:43:35 +07:00
Darcy Wong
aa886cecba fix(android): Separate insets for inapp and system keyboard 2025-09-23 17:07:48 +07:00
Darcy Wong
440f6c9c7e fix(android): Apply bottom insets to system keyboard
Reverts part of #14619
2025-09-23 08:26:31 +07:00
Darcy Wong
6b48078dc6 fix(android): Cleanup list layout so it's not covered by navigation bar 2025-09-01 10:32:33 +07:00
Darcy Wong
a992b98d47
Merge pull request #14619 from keymanapp/fix/android/osk-gap
fix(android): Fix insets for in-app vs system keyboard 🪟
2025-08-29 07:58:12 +07:00
Darcy Wong
aebb9270b3
Update android/KMEA/app/src/main/java/com/keyman/engine/KMManager.java 2025-08-29 07:50:21 +07:00
Joshua Horton
a194e02bfd
Merge pull request #14541 from keymanapp/fix/android/globalThis-polyfill
fix(android): polyfill globalThis for API 28 devices
2025-08-28 20:12:32 +07:00
Darcy Wong
a9a3c3ab25 fix(android): Check API level for getColor
CI build reports getColor requires API >= 23
2025-08-28 14:31:21 +07:00
Darcy Wong
dd43435a05 fix(android): Fix insets for in-app vs system keyboard 2025-08-28 13:30:16 +07:00
Darcy Wong
ca3c19441b fix(android): Update sentry-android to 8.19.1 2025-08-20 07:29:31 +07:00
Joshua Horton
a54e5a027a change(android): check globalThis before polyfill 2025-08-19 08:12:50 -05:00
Marc Durdin
81c807c257 chore(common): Merge branch 'master' into maint/common/14453-move-ci-scripts 2025-08-19 10:46:11 +02:00
Joshua Horton
0e46c2d2f7 docs(android): add min Chrome version in polyfill doc 2025-08-18 09:15:04 -05:00
Joshua Horton
ad990b3e52 fix(android): polyfill globalThis for API 28 devices
Fixes: #14450
2025-08-18 09:12:32 -05:00
Darcy Wong
eaec803701
Merge branch 'master' into fix/android/edge-to-edge-activities 2025-08-18 14:14:54 +07:00
Darcy Wong
7e5e117901
Merge pull request #14396 from keymanapp/fix/android/constraint-layout
fix(android): Convert Keyman app layout to use ConstraintLayout for handling edge-to-edge 🪟
2025-08-18 14:11:51 +07:00
Darcy Wong
5e62747cf1
Merge branch 'master' into main/android/taregt-api-35 2025-08-12 15:36:25 +07:00
Marc Durdin
a81138c62b
Merge pull request #14449 from keymanapp/maint/common/14065-consolidate-builder-scripts
maint(common): consolidate builder scripts 🐸
2025-08-12 10:41:09 +07:00
Marc Durdin
f95b26ac1f
Merge pull request #14446 from keymanapp/maint/common/14275-rename-and-cleanup-shellHelperFunctions.sh
maint(common): rename shellHelperFunctions.sh to utils.inc.sh 🐸
2025-08-12 10:40:59 +07:00
Darcy Wong
3ceccfc054 chore(android): Specify Java language version 21
Resolves Gradle deprecation and language version warnings
```gradle
Java compiler version 21 has deprecated support for compiling with source/target version 8.
```

The `java.toolchain.languageVersion` syntax is a superset that covers the previous syntax `android.compileOptions`
2025-08-11 11:44:51 +07:00
Darcy Wong
476ee0a18e
Merge pull request #14472 from keymanapp/fix/android/init-keyboard-order
fix(android): Get default sizes before initializing keyboard
2025-08-08 07:44:36 +07:00
Darcy Wong
fddbba52e1 fix(android): Get default sizes before initializing keyboard 2025-08-07 07:18:48 +07:00