Darcy Wong
4c6a69d32b
fix(android): Investigate lm-layer compatibility issues
...
This is a follow-on to #2358 to get Keyman keyboards to load for older Android devices (API 19-23).
* Update default nrc.en.mtnt.model to version 0.1.3 (SMP characters removed)
* Fix undefined console error
2019-11-28 10:15:38 +07:00
Marc Durdin
9a049f7c94
Merge pull request #2358 from keymanapp/android-2323-stable-legacy-api-compat
...
[Android] ES6 & API 19-23 compatibility changes
2019-11-28 10:27:04 +11:00
Darcy Wong
b5fd10fde8
chore(android): Update history.md
2019-11-27 10:38:11 +07:00
Darcy Wong
335846afed
Merge remote-tracking branch 'origin/stable-12.0' into android-cloud-patches
2019-11-27 09:51:32 +07:00
Darcy Wong
5a3dd00857
chore(android): update history.md
2019-11-27 09:49:44 +07:00
Darcy Wong
faaabb4ab7
fix(android): Investigate cloud API issues
2019-11-25 16:10:56 +07:00
Darcy Wong
091ed93b24
fix(android): Fix length used in context before restoring characters
...
This fixes a test scenario involving 6 emojis (SMP characters) and the p^p^ context.
A backspace was removing an entire p^ grapheme. This fixes the contents of `newContext` that is used to determine the character sequence to restore
2019-11-25 13:52:49 +07:00
Darcy Wong
b452c57688
fix(android): Add checks that getTextBeforeCursor doesn't return null
...
Fix crashlytics [issue](https://console.firebase.google.com/u/0/project/kmapro-ee779/crashlytics/app/android:com.tavultesoft.kmapro/issues/054f29f4c0601121ea1102c0eadf7cb6?time=last-seven-days&sessionId=5DDAD1AB0156000132ECCEAF30E92E2B_DNE_0_v2 )
2019-11-25 13:30:03 +07:00
Darcy Wong
811eb2ac6f
chore(android): Remove commented code and update history.md
2019-11-21 13:38:26 +07:00
Darcy Wong
197f47438d
fix(android): Remove split surrogate pair from beginning of context
...
In a scenario where the context is 8 smiley emojis followed by `p̂p̂`
A backspace was removing an entire `p̂` sequence.
Because the new context was crossing a surrogate pair.
2019-11-21 13:32:24 +07:00
Darcy Wong
b29e112a4a
fix(android): Fix NPE when deleting empty context
2019-11-21 11:27:20 +07:00
Darcy Wong
6887aeacab
chore(android): Forgot hash
2019-11-19 11:52:30 +07:00
Darcy Wong
e346566fec
chore(android): Update history.md
2019-11-19 11:21:56 +07:00
jahorton
cf52b38a1e
change(android): gets API 23 working again, but not 19 or 21 (yet)
2019-11-18 16:36:14 +07:00
Darcy Wong
d82026c366
chore(android): Add comment to Chromium issue
...
Also remove debugging logs
2019-11-18 13:18:16 +07:00
Darcy Wong
ce98d7ac0b
fix(android): Remove use of BreakIterator
...
Specifying newCursorPosition `1` fixed the cursor placement after inserting text.
2019-11-18 11:45:31 +07:00
Darcy Wong
99ce557cf1
fix(android): refactor method that removes split surrogate pair
2019-11-14 11:44:28 +07:00
Darcy Wong
b880638ed0
fix(android): Use BreakIterator to determine cursor when commiting text
2019-11-14 11:08:17 +07:00
Darcy Wong
29b201cd00
fix(android): Still trying to adjust the cursor on Firefox
...
* Also updated CharSequenceUtilTest to reflect expected rota keyboard output
2019-11-13 15:43:23 +07:00
Darcy Wong
6fde9c1739
chore(android): move utility methods to new class
...
Refactor charSequence utilities to CharSequenceUtil.java
2019-11-13 08:37:52 +07:00
Darcy Wong
c4c85af98f
chore(android): Add logging and adjust unit test constant
2019-11-12 22:18:52 +07:00
Darcy Wong
002f378a51
fix(android): Add unit test for adjust cursor position
...
Still wip for adjusting cursor in Firefox
2019-11-12 15:26:38 +07:00
Darcy Wong
d66d029406
fix(android): change adjustCursorPosition to use CharSequence
...
Changed signature in preparation for unit testing
2019-11-11 23:16:27 +07:00
Darcy Wong
1d521913e4
fix(android): Add unit test RestoreCharsTest
2019-11-09 08:03:57 +07:00
Darcy Wong
cb7a87986a
fix(android): refactor restoreChars()
...
Split out method `restoreChars()` so it can be run in unit test
* also adjust CountSurrogatePairsTest
2019-11-08 21:51:48 +07:00
Darcy Wong
8daa93a8e4
fix(android): Start refactoring to add unit tests
2019-11-08 15:49:12 +07:00
Sandra Forberger
87178b0640
fix[android]: fix cursor after insert
2019-11-07 10:05:48 +07:00
Darcy Wong
8a74b8aa90
fix(android): Skip if there's no left context to delete
2019-11-06 13:11:45 +07:00
Darcy Wong
95c0206309
chore: cleanup
...
* Make performLeftDeletions private
* Add try catch block to guard against out of bounds errors
2019-11-06 10:24:19 +07:00
Darcy Wong
2bfb3142d4
fix(android): Use commitText instead of setComposingText
...
This does a better job of updating the cursor so the next character gets correctly inserted
2019-11-06 09:26:43 +07:00
Darcy Wong
ea8a08a1a7
chore(android): cleanup unused code
2019-11-03 22:23:35 +07:00
Darcy Wong
f18ba4d533
fix(android): advance cursor when re-inserting chars
2019-11-02 22:59:52 +07:00
Darcy Wong
ab37dea089
fix(android): Continue to implement algorithm
2019-11-01 23:14:56 +07:00
Darcy Wong
750bd6b860
fix(android): Start implementing algorithm to compensate for deletes
2019-11-01 15:04:36 +07:00
Darcy Wong
deb6b6f4b0
fix(android): Also increment when deleting SMP
2019-10-31 23:16:44 +07:00
Darcy Wong
f60b47a65b
fix(android): Adjust for Android left deletions
2019-10-30 23:41:47 +07:00
Darcy Wong
0cfd8a437c
fix(android): Separate getter / setter of KMManager.KMManager
...
Per review comment, separate getter and setter of state variable.
Also renamed mayProtect typos to mayPredict
2019-10-29 14:33:15 +07:00
Darcy Wong
17173e2388
chore: Update history.md
2019-10-29 11:37:20 +07:00
Darcy Wong
6f6df3bb85
fix(android): override mayPredict when entering password field
2019-10-29 11:02:24 +07:00
Darcy Wong
0f1b2d8d3c
fix(android): Add null check for re-registering dictionary
2019-10-28 15:54:38 +07:00
Darcy Wong
cf03959971
fix : #2251 Temporarily disable dictionary when entering password fields
2019-10-28 13:59:18 +07:00
Darcy Wong
50a9458e87
Update history.md
2019-10-25 08:33:01 +07:00
Darcy Wong
11afa81c80
Also use the package version for generating Dataset
2019-10-23 21:46:47 +07:00
Marc Durdin
8700a2e38d
[Android] One more check in another file for analytics
2019-10-14 13:18:49 +07:00
Marc Durdin
d5eee457a2
[Android] history.md
2019-10-14 13:15:31 +07:00
Marc Durdin
9fce3b5a75
[Android] Fixes #2202 . If analytics is disabled, the app may crash.
2019-10-14 13:14:03 +07:00
Darcy Wong
8efd7c49c7
Update history.md
2019-10-10 15:11:42 +07:00
Darcy Wong
b8c9c855b7
Use package version for lexical model version
...
Fixes #2190
2019-10-10 14:15:10 +07:00
Marc Durdin
c338774862
Android history
2019-10-07 11:11:17 +11:00
Darcy Wong
95af1b7c64
Update history.md
2019-10-04 09:50:36 +07:00