Fix a couple of typos

This commit is contained in:
Gabriele M
2017-07-18 22:15:13 +02:00
parent 82dbc8fde3
commit 341eec0b28
2 changed files with 4 additions and 4 deletions

View File

@@ -154,10 +154,10 @@ public class UpdaterController implements UpdaterControllerInt {
public void onResponse(int statusCode, String url, DownloadClient.Headers headers) {
final UpdateDownload update = mDownloads.get(downloadId).mUpdate;
if (update.getFileSize() <= 0) {
String contentLenght = headers.get("Content-Length");
if (contentLenght != null) {
String contentLength = headers.get("Content-Length");
if (contentLength != null) {
try {
long size = Long.parseLong(contentLenght);
long size = Long.parseLong(contentLength);
if (size > 0) {
update.setFileSize(size);
}