mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-21 07:07:39 +00:00
Check valid file size when downloading keyboard
Addresses the second part of #370
This commit is contained in:
parent
3dccc94272
commit
44deae4937
1 changed files with 1 additions and 1 deletions
|
|
@ -1284,7 +1284,7 @@ public final class KMManager {
|
|||
Log.e("FD: Download failed!", "Error: " + e);
|
||||
} finally {
|
||||
if (ret > 0) {
|
||||
if (tmpFile.exists()) {
|
||||
if (tmpFile.exists() && tmpFile.length() > 0) {
|
||||
if (file.exists()) {
|
||||
file.delete();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue