Commit 71c32db6 authored by Darcy Wong's avatar Darcy Wong
Browse files

fix(android): Add abaility to reinitialize `CloudDownloadMgr`

Fixes crashlytics [crash](https://console.firebase.google.com/u/0/project/kmapro-ee779/crashlytics/app/android:com.tavultesoft.kmapro/issues/ae59e122f0fac1eb6e082ddb21bb6fae?time=last-seven-days&sessionId=5E41A650017400013B04CE17115A1E88_DNE_0_v2)

There's an intermittent condition between the system notification bar showing a resource update available, the user closing the Keyman app, and the user later choosing  to update the resource.

By then, the CloudDownloadMgr may not be available to handle the download.

This makes the following change:
* When the Keyman app is closed, shutdown the CloudDownloadMgr (without destroying the InApp and System Keyboard).
* When preparing to download a resource update, re-initialize the CloudDownloadMgr as needed.
parent c3cff2f2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment