Refactor keyboard download code
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`.
parent
e47e6a00
Please register or sign in to comment