From 406af6e699af6d426b905312abb23c3c8dd15197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz=20Sieradzki?= Date: Fri, 25 Jul 2014 19:33:53 +0200 Subject: [PATCH] Add missing @Override annotation, remove unnecessary code --- src/acr/browser/lightning/DownloadHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/acr/browser/lightning/DownloadHandler.java b/src/acr/browser/lightning/DownloadHandler.java index a6d7ed4..36d2909 100644 --- a/src/acr/browser/lightning/DownloadHandler.java +++ b/src/acr/browser/lightning/DownloadHandler.java @@ -93,7 +93,7 @@ public class DownloadHandler { break; } } - if (needed == false) { + if (!needed) { return path; } @@ -204,6 +204,7 @@ public class DownloadHandler { final DownloadManager manager = (DownloadManager) activity.getSystemService(Context.DOWNLOAD_SERVICE); new Thread("Browser download") { + @Override public void run() { manager.enqueue(request); }