Commit graph

382 commits

Author SHA1 Message Date
Darcy Wong
1afc3347c1 fix(android/app): Use BaseActivity 2021-01-18 11:17:03 +07:00
Darcy Wong
b969bae423 feat(android/app): Add Settings menu to change display language 2021-01-15 06:44:25 +07:00
Marc Durdin
99e60559eb fix(android): Popup misalignments and compatibility with WeChat, Telegram
Fixes #4019.
Rolls back #3009 and fixes base issue in alternative manner.

The core issue here was twofold:

1. We needed to set the window size to the whole screen in order for the
   popups to visible and touchable. We implement this in
   `onConfigureWindow`.
2. Once our window size is the whole screen, we need to tell the apps
   which part of the window is our keyboard UI, in `onComputeInsets`.
   This is the only part of the window which impacts the layout of the
   underlying app. We had not set the `visibleTopInsets` property and
   this caused the WeChat problems.

Finally, in order for this to work, we roll back the original fix
in #3009 as that one breaks the full-screen layout requirement.

Tested with a wide range of apps on Android 10, including WeChat and
Telegram. If @kienwt, @ericjding have capacity, would love to know if
this fix works for them also.

Note that this fix requires changes to consumers of Keyman Engine, so
sample and FV Keyboards updated accordingly.
2021-01-14 17:05:31 +11:00
Darcy Wong
7596d393da fix(android): Address review comments 2021-01-06 14:31:43 +07:00
Darcy Wong
cf5dd4c114 change(android/engine): Rename to DownloadFileUtils 2020-12-18 09:07:19 +07:00
Darcy Wong
013e9a6187 fix(android/engine): Remove WRITE_EXTERNAL_STORAGE permission
Refactor how DownloadManager files are handled:
* File gets copied to cache
2020-12-17 17:01:39 +07:00
Darcy Wong
18c537fc34 fix(android/engine): Don't use external storage for cloud downloads 2020-12-16 20:28:54 +07:00
Darcy Wong
26b08bba65 fix(android/app): Guard against downloading the same kmp twice 2020-12-07 15:27:02 +07:00
Darcy Wong
4506aa316f fix(android/app): Change UX to finish package installation 2020-12-07 13:29:48 +07:00
Darcy Wong
54b3063c8b chore(android/app): Revert #4025
Since Sentry navigation breadcrumbs are handled by embedded KMW sentry-manager, the sentry-android change in #4025 needs to be reverted.
2020-12-04 08:05:00 +07:00
Darcy Wong
25084928a1
Update android/KMAPro/kMAPro/src/main/java/com/tavultesoft/kmapro/MainActivity.java
Incorporate suggestion

Co-authored-by: Marc Durdin <marc@durdin.net>
2020-12-01 07:59:25 +07:00
Darcy Wong
b1f922363f fix(android/app): Sanitize Sentry navigation breadcrumbs 2020-11-30 16:03:40 +07:00
Darcy Wong
2e29f117df fix(android/app): Finish packageActivity on Toast errors
This stops the activity from generating the Stepper navigation on failed keyboard installs
2020-11-26 12:38:42 +07:00
Darcy Wong
967ec86889 fix(android/app): Check touch keyboard and language count 2020-11-26 11:36:34 +07:00
Darcy Wong
e755e6401a
Merge pull request #3874 from keymanapp/fix/android/missing-welcome
fix(android/app): Install keyboard packages w/o welcome.htm
2020-11-20 11:39:01 +07:00
Darcy Wong
aa18f31a93 feat(android/app): Add setting preference for sending crash report 2020-11-19 11:48:09 +07:00
Darcy Wong
3299dbef20 fix(android/app): Install keyboard packages w/o welcome.htm
Fixes #3873
2020-11-17 15:51:48 +07:00
Darcy Wong
da9a50ae58 chore(android/engine): update to sentry-android:3.1.0
The migration changes the package name from `import io.sentry.core` to `import.sentry`
2020-11-16 14:05:41 +07:00
Darcy Wong
590b0f0210 fix(android/app): Remove network check on "Get Started" menu 2020-11-05 10:36:26 +07:00
Darcy Wong
5271cc115f feat(android/engine): Add hooks for progressbar 2020-11-03 10:52:02 +07:00
Darcy Wong
9931b15a31 feat(android/engine): Add query for available dictionary 2020-11-02 16:19:03 +07:00
Darcy Wong
318c674c80 chore(android/app): Remove logging 2020-10-27 11:23:03 +07:00
Darcy Wong
ff5fa80a59 fix(android/app): Don't override system keyboard
Reverts #3648
2020-10-27 11:08:34 +07:00
Darcy Wong
00e0698602 fix(android/browser): Use separate process for WebViews 2020-10-27 10:36:19 +07:00
Darcy Wong
1a5759c4fd
Update android/KMAPro/kMAPro/src/main/java/com/tavultesoft/kmapro/WebBrowserActivity.java
Co-authored-by: Marc Durdin <marc@durdin.net>
2020-10-23 06:04:09 +07:00
Darcy Wong
d9302f8cba fix(android/browser): Improve how browser handles input
* Don't log `MalformedURLExceptions` since it may be a query
* URLEncode the string if it seems to be a URL
* Set `android:usesCleartextTraffic="true"` which allows http:// traffic (API 23+)
2020-10-20 08:54:58 +07:00
Darcy Wong
3c817d2a42 fix(android/engine): Ignore "no protocol" MalformedURLExceptions 2020-10-19 16:14:46 +07:00
Darcy Wong
0f9f7ec90d fix(android/app): Switch system keyboard in KMPBrowserActivity 2020-10-02 10:55:58 +07:00
Darcy Wong
985307e878
Merge pull request #3624 from keymanapp/fix/android/undefined-package-id
fix(android/engine): Fix undetermined lexical model package ID
2020-09-29 19:51:22 +07:00
Darcy Wong
143560d8f1 fix(android/app): Fix uninstalling sil_euro_latin for other languages 2020-09-28 10:41:18 +07:00
Darcy Wong
2a30b9070d fix(android/engine): Fix undetermined lexical model package ID 2020-09-25 17:02:31 +07:00
Darcy Wong
a78098455a fix(android/app): Change install intent to MainActivity 2020-09-24 15:41:44 +07:00
Darcy Wong
65ccdb4042 fix(android/engine): Move preference strings to KMManager 2020-09-24 14:03:33 +07:00
Darcy Wong
f63757eb6b fix(android/app): Adjust namespaces 2020-09-24 13:48:53 +07:00
Darcy Wong
464318915a chore(android/app): Move some classes to KMAPro 2020-09-24 12:51:23 +07:00
Darcy Wong
4f961189de fix(android/app): Increase intent priority for kmp download 2020-09-24 12:51:23 +07:00
Darcy Wong
0f17062ad2 feat(android/app): Use api for downloading associated dictionary 2020-09-23 10:31:44 +07:00
Darcy Wong
ce8c502191 chore(android/engine): Remove unused cloud methods 2020-09-22 15:58:08 +07:00
Darcy Wong
35fef54865 fix(android/app): Download associated dictionary after keyboard install
Currently, the check for downloading an associated dictionary only happens if a keyboard search from keyman.com includes a language tag. (e.g. `l🆔str-latn`)

This moves the check to occur after a keyboard package is installed (and the specific languages chosen via the stepper).
2020-09-22 15:58:08 +07:00
Darcy Wong
94659c0716
Merge pull request #3571 from keymanapp/fix/android/title-size
fix(android/app): Fix Info page title size
2020-09-18 08:53:17 +07:00
Darcy Wong
a51335901f fix(android/app): Use TextView instead of toolbar
Per review comment, make version string smaller
2020-09-16 09:13:48 +07:00
Darcy Wong
b2c4d0407a fix(android/app): Pass keyboard to StepperAdapter
Pass keyboard so SelectLanguageFragment can display correct keyboard info
2020-09-08 15:09:38 +07:00
Darcy Wong
df7e3a0796 fix(android): Try to disable for SelectLanguageActivity 2020-09-08 14:08:43 +07:00
Darcy Wong
3f45186c94 fix(android): Disable "INSTALL" button if no languages selected 2020-09-08 10:16:02 +07:00
Darcy Wong
b76afe88ad fix(android/app): Add landscape dimension 2020-09-08 10:11:35 +07:00
Darcy Wong
ea941720dc fix(android/app): Modify Info Activity to use titlebar styling 2020-09-07 21:24:25 +07:00
Darcy Wong
18061ef19a fix(android/app): Remove unused intent ACTION_GET_USERDATA 2020-09-02 13:29:32 +07:00
Darcy Wong
4e7145f0f9
Merge pull request #3532 from keymanapp/fix/android/menu-overflow
fix(android/app): Fix overflow menu for hdpi devices
2020-08-28 13:27:33 +07:00
Darcy Wong
f604eaa06a fix(android/app): Fix overflow menu for hdpi devices 2020-08-28 12:30:12 +07:00
Darcy Wong
4a963533c0 fix(android/app): Inject meta viewport tag for viewing help
Fixes #3522 by injecting a meta viewport tag if the help document in WebViewFragment doesn't contain it.
This replaces the 200% zoom.
2020-08-27 09:21:53 +07:00