mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-21 23:27:39 +00:00
Currently in `KMManager`, there's 3 methods to download a `KMKeyboard` (2 in `KMKeyboardDownloader`, 1 in `KMCustomKeyboardDownloader`) for the 3 use-cases respectively: 1. Add new keyboard (from the cloud) 2. Update a keyboard 3. Install a custom keyboard This PR refactors the following: 1. Code from `MainActivity.checkUrl()`, `KMManager.KMKeyboardDownloader()`, and `KMManager.CustomKeyboardDownloader()` into a new activity `KMKeyboardDownloadActivity`. Code for doing actual file downloads are kept in an `AsyncTask`. 2. `FileDownloader` moved to a separate util class. 3. Confirmation dialogs for downloading keyboards are also refactored into `ConfirmDialogFragment`. |
||
|---|---|---|
| .. | ||
| .idea | ||
| gradle/wrapper | ||
| kMAPro | ||
| .classpath | ||
| build.gradle | ||
| build.sh | ||
| gradlew | ||
| gradlew.bat | ||
| ic_launcher-web.png | ||
| lint.xml | ||
| proguard-project.txt | ||
| project.properties | ||
| settings.gradle | ||