Commit graph

442 commits

Author SHA1 Message Date
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
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
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
9fce3b5a75 [Android] Fixes #2202. If analytics is disabled, the app may crash. 2019-10-14 13:14:03 +07:00
Darcy Wong
b8c9c855b7 Use package version for lexical model version
Fixes #2190
2019-10-10 14:15:10 +07:00
Darcy Wong
64c13cf7ae Add wrappers to missing API methods 2019-10-03 15:02:55 +07:00
Joshua A. Horton
a2537c3b4c Merge branch 'beta' into android-offline-help-mirroring 2019-09-26 14:24:35 +07:00
jahorton
4773bf1dec Merge branch 'android-offline-help-mirroring' of https://github.com/keymanapp/keyman into android-offline-help-mirroring 2019-09-26 10:37:33 +07:00
Darcy Wong
6276dba3b9 Guard against condition when language.keyboards entries don't exist 2019-09-26 10:21:14 +07:00
jahorton
14288934ce Allows app to use wget-mirrored offline help 2019-09-26 09:41:53 +07:00
Darcy Wong
c9f1850f4d
Merge pull request #2135 from keymanapp/android-fix-dismiss-crash
[Android] Fix two crashes reported in Crashyltics
2019-09-26 09:09:48 +07:00
jahorton
e623e494f0 Clears JS queue on page reload state 2019-09-25 15:59:52 +07:00
Darcy Wong
19c7dbe390 Tack on another fix for a separate crash 2019-09-25 14:39:51 +07:00
jahorton
7b7c93aed4 Improves app stability, delays JS calls past page load 2019-09-25 14:38:42 +07:00
Darcy Wong
d973c20445 Fix crash in dismissKeyboard
Fixes crashlytics issue in [KMTextView](https://console.firebase.google.com/u/0/project/kmapro-ee779/crashlytics/app/android:com.tavultesoft.kmapro/issues/5c48b419f8b88c2963468341?time=last-seven-days&sessionId=5D8A6E990027000120BCBEDF388131A9_DNE_0_v2)
2019-09-25 14:03:53 +07:00
Darcy Wong
042e29ebf5 Address review comment 2019-09-23 11:25:28 +07:00
Darcy Wong
a09bc84b9e Use predictions toggle to enable/disable corrections toggle 2019-09-23 10:29:12 +07:00
Darcy Wong
245a119fc3 Add check for KMKey_CustomKeyboard 2019-09-09 09:39:37 +07:00
Darcy Wong
284c7510c9 Handle NPE when parsing Cloud repo JSON 2019-09-09 08:25:27 +07:00
Darcy Wong
9d0596321e Merge branch 'beta' into android-file-provider 2019-09-06 13:54:38 +07:00
Darcy Wong
d9ef5e7952 Address review comments and update history.md 2019-09-06 13:13:31 +07:00
Darcy Wong
831a19df18 Fix naming in LexicalModelPackageProcessorTest 2019-09-06 11:21:30 +07:00
Darcy Wong
c39aadd226 Fix when help link arrows are displayed 2019-09-06 10:58:15 +07:00
Darcy Wong
c07d2df1f1 Cleanup unused refactoring 2019-09-06 10:05:30 +07:00
Darcy Wong
028d247110 Start refactoring help links 2019-09-05 16:23:58 +07:00
Darcy Wong
6c4a610071 Add FileProviderUtils to determine if app includes FileProvider 2019-09-04 16:20:16 +07:00
Darcy Wong
a36207ed79 Revert FileProvider to Keyman app
Starts to address #2039

Move FileProvider back to Keyman manifest and revert authority.

Added Toast notification if 3rd party app doesn't define FileProvider. (info pages fail to properly load)
2019-09-04 11:13:27 +07:00
Darcy Wong
faa56a1271 Install nrc.en.mtnt.model.kmp as default dictionary
* Allow the kmp to be installed if the lexical model doesn't exist
* Modify PackageActivity to silently install kmp files without user confirmation on welcome.htm page
* Fix package ID extracted from `.model.kmp` files to not include `model`.
2019-09-02 16:12:35 +07:00
Darcy Wong
d0da0838c0 Propagate custom help link to Model Info page 2019-08-30 11:07:03 +07:00