Commit graph

579 commits

Author SHA1 Message Date
Darcy Wong
8c25c9950f chore(android): Update default nrc.en.mtnt.model to 0.1.4 2020-02-07 17:09:11 +07:00
Darcy Wong
57dcdf3b2b fix(android): Pass language ID to ConformDialogFragment
When cancelling the Android system notifications about lexical model update being available, the notification would still remain.

This passes the language ID so the dialog can be cancelled.
2020-01-29 16:19:09 +07:00
Darcy Wong
9fed52a743 fix(android): Revert KMManager.onDestroy
Fixes #2539

During #2326, `KMManager.onDestroy()` was updated to set `InAppKeyboard` and `SystemKeyboard` to null. While good in practice, this created  an issue when closing Keyman as a System Keyboard. Lingering Javascript calls in the WebView would crash with the null keyboards.

This reverts `onDestroy()` to how it has been since before 2.8 stable
2020-01-27 14:27:49 +07:00
Darcy Wong
c0ed81e430 fix(android): Add QR code to scrollable listview 2020-01-22 22:39:15 +07:00
Darcy Wong
e3a59ee9d2 fix(android): Remove unused padding 2020-01-22 16:17:54 +07:00
Darcy Wong
c45b3038ce fix(android): Tweak UI when update available 2020-01-22 11:28:19 +07:00
Darcy Wong
757fc7fd6d chore(android): Use cloud download icon
Per review comment, use the cloud download icon
2020-01-22 07:03:08 +07:00
Darcy Wong
c54dcc52c4 chore(android): Tweak string for downloading latest dictionary 2020-01-21 13:45:47 +07:00
Darcy Wong
b3946f6b3d fix(android): Download update to model when available 2020-01-21 12:48:52 +07:00
Darcy Wong
94306521aa fix(android): Download update to keyboard when available 2020-01-21 09:59:43 +07:00
Darcy Wong
47e0fe7ead fix(android): Update Keyboard Settings page to show cloud updates 2020-01-20 16:44:21 +07:00
Darcy Wong
0008e13098 chore(android): Update history.md
Also add newline to end of HelpFile
2020-01-10 08:35:09 +07:00
Darcy Wong
70f925e508 Merge branch 'master' into android-view-welcome 2020-01-10 08:32:35 +07:00
Darcy Wong
ab165e49c9 Merge remote-tracking branch 'origin/master' into android-follow-custom-link 2020-01-06 09:48:07 +07:00
Darcy Wong
66f86a904c fix(android): Also use HelpFile for Model custom help link 2019-12-20 15:57:22 +07:00
Darcy Wong
c772a2dbfe chore(android): Refactor HelpFile as utility 2019-12-20 15:35:28 +07:00
Darcy Wong
6cc8a56681 fix(android): Update file provider permissions 2019-12-20 10:55:18 +07:00
Joshua Horton
53fda94262
Merge pull request #2454 from keymanapp/android-2323-cherry-compile-fix
fix(android): Removes Closure's auto-polyfills, adds test case bypass
2019-12-19 08:04:43 +07:00
Darcy Wong
8a079193fd Merge branch 'master' into android-follow-custom-link 2019-12-18 13:14:28 +07:00
Darcy Wong
e72b67248f change(android): Update nrc.en.mtnt model to 0.1.3
Cherrypick of #2389 to master
2019-12-18 12:04:22 +07:00
Darcy Wong
74b5e1a573 fix(android)
Address review comments
2019-12-18 08:57:32 +07:00
jahorton
198fe16223 docs(android): Adds documentation for build script changes 2019-12-18 08:13:19 +07:00
Darcy Wong
cde60e23f4 feat(android): Add QR Codes on Keyboard Info pages
Addresses Android for #1535

Add QR Codes to the keyman.com keyboard page.

If the main app doesn't include the QRGen libraries, the QR Code isn't generated/displayed.

Also update the list of dependencies in README.md
2019-12-17 15:53:34 +07:00
Joshua Horton
b5f4462b67
fix(android): Restores -debug flag definitions 2019-12-16 12:32:15 +07:00
jahorton
c1c3c1e6a1 fix(android): Removes Closure's auto-polyfills, adds test case bypass 2019-12-16 12:24:04 +07:00
Darcy Wong
05f50f03f4 fix(android): Investigate propagating custom help links 2019-12-12 16:24:37 +07:00
Darcy Wong
3251f74962 fix(android): Check substring length
Cherrypick of #2444 to master to fix `StringIndexOutOfBoundsException` on [Crashlytics](https://console.firebase.google.com/u/0/project/kmapro-ee779/crashlytics/app/android:com.tavultesoft.kmapro/issues/74f8209642c77218cc473098ee294ceb?time=last-seven-days&sessionId=5DEFABD703CE000144559FADAEE45C9D_DNE_0_v2)
2019-12-12 08:58:14 +07:00
Darcy Wong
397f4f7d3a chore(android): add linewrap and update history.md 2019-12-04 20:14:32 +07:00
Darcy Wong
4b894a02df chore(android): remove unnecessary code 2019-12-04 14:31:18 +07:00
Darcy Wong
9bf644ea5e fix(android): Set preference when update is cancelled 2019-12-04 12:57:24 +07:00
Darcy Wong
2b19588c3c fix(android): Add a preference for ignoring update notifications
This is done individually per keyboard or lexical model ID
2019-12-03 16:01:40 +07:00
Darcy Wong
735633f36d chore(android): Update comment in test 2019-12-03 09:57:29 +07:00
Darcy Wong
ba99028058 Merge remote-tracking branch 'origin/master' into android-lowercase-language-id 2019-12-03 09:32:15 +07:00
Darcy Wong
1554bbda1e fix(android): Update kmp.json in test package to en-US
This updates the LexicalModelPackageProcessorTest to verify the language ID is lower-cased when processing kmp files.
2019-12-03 09:31:58 +07:00
Darcy Wong
0dfa315844 fix(android): Add unit tests 2019-12-03 08:41:00 +07:00
Darcy Wong
d02deadad4 fix(android): Investigate using lower-case language IDs 2019-12-03 08:41:00 +07:00
jahorton
ecddb73862 change(android): gets API 23 working again, but not 19 or 21 (yet) 2019-12-02 07:55:37 +07:00
Darcy Wong
751020cf4b fix(android): Add checks to avoid exceptions 2019-11-29 09:12:55 +07:00
Darcy Wong
30912b75cc fix(android): Cherrypick #2378 to master
This PR cherrypicks #2378 to master
This fixes a few issues involving the Cloud Repository

1. Add some null checking to prevent crashes
2. This addresses an issue where a custom .kmp package is installed (which currently associates the first language listed in kmp.json). Trying to install additional languages listed in the kmp.json failed because the package ID info wasn't being propagated.
2019-11-27 16:04:17 +07:00
Darcy Wong
54c549bdc3 fix(android): Cherrypick #2377
Follow-on to #2376 for master

This fixes 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)

by adding additional checks for when `getTextBeforeCursor()` returns null context. The length in determining `newContext` was also fixed to handle the test scenario involving 6 emojis (SMP chars) followed by `p̂p̂`
2019-11-27 10:46:22 +07:00
Darcy Wong
ad96952514 fix(android): Fix left-deletions
Fixes ##2250
Cherrypick of #2281 for master

Due to a Chromium [bug](https://bugs.chromium.org/p/chromium/issues/detail?id=1024738) in the implementation of deleteSurroundingText, we need to save off the original context and re-insert characters that shouldn't have been deleted.
2019-11-25 09:44:35 +07:00
Darcy Wong
5048b5ff8d fix(android): Update sample project to include dictionary 2019-11-22 10:56:22 +07:00
Darcy Wong
47df0be02b fix(android): Grant WRITE_EXTERNAL_STORAGE permission
On API level 19, the DownloadManager was throwing an exception because it needed WRITE_EXTERNAL_STORAGE permission to download the cloud catalog info.

Reference: https://developer.android.com/reference/android/app/DownloadManager.Request#setDestinationUri(android.net.Uri)
2019-11-20 13:50:16 +07:00
Sandra Forberger
74f6cc2190 doc[android]: add comments 2019-11-20 11:43:19 +07:00
Sandra Forberger
dd658e8722 fix[android]: activate help link in testmode 2019-11-20 11:29:52 +07:00
safolit
2223af9ada
Merge branch 'master' into android-add-functional-test 2019-11-20 11:11:04 +07:00
Sandra Forberger
73768f49b0 doc[android]: add todo 2019-11-20 11:03:47 +07:00
Sandra Forberger
9b99e0a0de fix[android]: remove unused code 2019-11-20 10:53:56 +07:00
Sandra Forberger
2539f23e59 fix[android]: execute helplink test without fileprovider 2019-11-20 10:36:36 +07:00
safolit
49a90f3f67
Merge branch 'master' into android-update-catalog-on-startup 2019-11-20 10:22:24 +07:00