Commit graph

232 commits

Author SHA1 Message Date
Darcy Wong
d35e97315d Cherrypick #1634 to master 2019-02-27 09:53:01 +07:00
Marc Durdin
ad0c21b057
Merge branch 'master' into beta-p5s4-master-week-1 2019-02-18 11:46:36 +11:00
Darcy Wong
98a5616387 Update comment 2019-02-06 19:30:38 -06:00
Darcy Wong
62e701332a Remove test code 2019-02-06 10:15:56 -06:00
Darcy Wong
f16fd9cf46 Show error dialog when keyboard fails to download 2019-02-06 10:01:30 -06:00
Darcy Wong
620f942abf Add notification when font fails to download 2019-02-05 12:37:42 -06:00
Joshua A. Horton
ba769e67c3 Merge branch 'beta' into p5s2-merge 2019-02-04 21:02:15 +07:00
Darcy Wong
e63298b054 Rename key
Per PR comment, standardize keys to `ConfirmDialogFragment.` prefix
2019-01-25 10:06:02 -06:00
Darcy Wong
44f9a665ef Fix ProgressDialog background 2019-01-23 15:45:33 +07:00
Darcy Wong
5f780dce2a Fix pattern for SimpleDateFormat
Fixes exception found while testing this scenario:
1. Emulator Android API 16
2. From globe button, add Afade (Latin) - SIL Cameroon QWERTY keyboard
3. From browser, install keyboard package from 
https://keyman.com/keyboard/sil_cameroon_qwerty
4.  Return to language picker, and add new keyboard
5. This triggers SimpleDateFormat()
2019-01-23 09:50:02 +07:00
Darcy Wong
22ecac01ef Cleanup ConfirmDialogFragment
Currently, the app name briefly flickers when ConfirmDIalogFragment finishes.

These changes make the flicker less noticeable:
* Set the app name blank in the Manifest
* Dismiss the dialog fragment and finish the activity

Also updated ConfirmDialogFragment to have a flexible message body (second parameter)

* And updated gitignore to ignore artifacts from Android Studio's "Layout Inspector" tool
2019-01-23 08:33:13 +07:00
Darcy Wong
2ca62811b5 PRovide HashMap.getOrDefault for older API levels 2019-01-21 11:28:38 +07:00
Darcy Wong
5919fc02f3 Fix activity finish() transitions
Changed KeyboardListActivity so it passes a result (1) which will get the parent LanguageListActivity to finish too.
2019-01-19 23:34:53 +07:00
Darcy Wong
884ac75cd8 Update with kmp info if version >= cloud
Addresses review comment
2019-01-19 22:27:00 +07:00
Darcy Wong
0f8f95ffca Minor cleanup 2019-01-18 16:51:16 +07:00
Darcy Wong
20fc9b0622 Fix packageID when there's multiple keyboards 2019-01-18 16:19:08 +07:00
Darcy Wong
b7718e2a16 Use packageID to determine when to add language association 2019-01-18 15:53:18 +07:00
Darcy Wong
4edccb5bd6 Update LanguageListActivity when offline
Update to handle scenario when offline. 
* Use default set of options
2019-01-18 14:08:26 +07:00
Darcy Wong
1864fd41f9 Handle offline languages list
When offline, only use languages info from kmp.json files.

Also cleaned up calls to setKeyboard
2019-01-18 10:24:21 +07:00
Darcy Wong
1bc9b5923b Add keyboard from already installed package 2019-01-17 22:49:54 +07:00
Darcy Wong
28de2b93b2 Fix JSON exception when pkgID undefined 2019-01-17 22:49:54 +07:00
Darcy Wong
36b2261cbe Start merging language/keyboard info 2019-01-17 22:49:54 +07:00
Darcy Wong
23382fa53b Update unit tests 2019-01-17 22:49:54 +07:00
Darcy Wong
19cf116684 Start processing kmp.json to determine existing language/keyboard pairs 2019-01-17 22:49:54 +07:00
Darcy Wong
7cd2b7ee22 Install the first language in a keyboard package 2019-01-17 22:49:54 +07:00
Darcy Wong
831382db58
Merge branch 'beta' into android-dispatch-external-keys 2019-01-14 18:43:22 +07:00
Darcy Wong
8b9c71bc9b Cleanup from review comments 2019-01-14 18:41:34 +07:00
Darcy Wong
7ed0547084 Update minimum SDK level from 15 to 16 2019-01-14 11:31:30 +07:00
Darcy Wong
77571ab555 Pass original eventModifiers to dispatchKey() 2019-01-11 15:20:24 +07:00
Joshua A. Horton
2ef001f30f Moves keycode constants to their own file, starts 'text' namespace. 2019-01-11 12:27:06 +07:00
Darcy Wong
d03ab9fef1 Pass "tab" and "enter" back to Android app to handle
Instead of KMW inserting whitespace, pass those keys back to the embedded app to natively handle.
2019-01-11 11:24:13 +07:00
Darcy Wong
f41cf328ab Update keyboard version comparison
Currently, keyboard versions as floats are compared for determining when to update the keyboard.
This doesn't work for the current default keyboard sil_euro_latin version 1.8.1

* Move compareVersions() from KMManager to FileUtils
2019-01-10 13:51:29 +07:00
Darcy Wong
2db957cbb4 Address review comments
* log JSON parsing exceptions
* explain remove() usage for API 19+
* revert code in fontUrls()
2019-01-09 09:10:23 +07:00
Darcy Wong
af8c9f7d60 Get the ttf font for osk too 2019-01-08 22:39:24 +07:00
Darcy Wong
89fc04c3a5 Try to keep only .ttf font 2019-01-08 17:00:57 +07:00
Darcy Wong
9165a7dcb0 Add .ttf file utility 2019-01-08 15:26:36 +07:00
Darcy Wong
72ca81fcdb Catch exception when creating Typeface 2019-01-08 15:26:01 +07:00
Darcy Wong
8c3f242220 cleanup 2019-01-02 19:08:23 +07:00
Darcy Wong
8d9006a376 Add cancel button to ProgressDialog 2019-01-02 19:08:23 +07:00
Darcy Wong
a05194589a Update default sil_euro_latin to v 1.8.1 2018-12-07 09:40:22 +07:00
Darcy Wong
5ea4b31922 Revert svg support for OSK font 2018-11-27 13:50:20 +07:00
Darcy Wong
30e3afb7d7 Don't restrict use of svg 2018-11-27 11:25:30 +07:00
Darcy Wong
61c98e7771 Address review comments
* Revert support for .svg and .woff fonts
* Check filename for welcome.htm
* Use FileUtils  to check Keyman package extension
2018-11-26 11:07:25 +07:00
Darcy Wong
4fa61a745a Update usage of lastIndexOf 2018-11-21 16:08:30 +07:00
Darcy Wong
481eda7d6f Update FileUtils to handle mixed-case file extensions 2018-11-21 14:27:18 +07:00
Darcy Wong
3a9c87d0d7
Merge pull request #1320 from keymanapp/android-cloud-api-4
[Android] Update to Cloud API 4.0
2018-11-15 06:12:26 +07:00
Darcy Wong
2a9e2c1da8 Change to Cloud API 4.0 2018-11-13 22:57:30 +07:00
Darcy Wong
0fc93d14f3 Swap TextView positions when end < start
Fixes #1312

Cherry-pick of #1313
2018-11-13 16:58:47 +07:00
Darcy Wong
33ee8373d6 Add styling to show current selection in list
In Keyman 10, the user could navigate the keyboard/language picker lists and the currently selected row would have a gray background.
2018-11-08 08:24:48 +07:00
Darcy Wong
84fe9853bd Revert changes involving longpress of option key
* also remove keyboard icons
2018-11-05 16:42:18 +07:00