Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/news-android.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Development <david-dev@live.de>2015-07-20 17:15:59 +0300
committerDavid Development <david-dev@live.de>2015-07-20 17:15:59 +0300
commit65d6c1d24a7ebbf81fe8cf6a5cb2012323d81da3 (patch)
treebe0ac55c5dd8e4d2e02e743c6604d57129c04ce7 /News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/PodcastDownloadService.java
parent7d9606e47bce84706bbeca12625dd8921ae540af (diff)
Fix android lint issues/hints
Diffstat (limited to 'News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/PodcastDownloadService.java')
-rw-r--r--News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/PodcastDownloadService.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/PodcastDownloadService.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/PodcastDownloadService.java
index e53cdcb6..801bced0 100644
--- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/PodcastDownloadService.java
+++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/PodcastDownloadService.java
@@ -69,7 +69,7 @@ public class PodcastDownloadService extends IntentService {
if (intent != null) {
final String action = intent.getAction();
if (ACTION_DOWNLOAD.equals(action)) {
- ResultReceiver receiver = (ResultReceiver) intent.getParcelableExtra(EXTRA_RECEIVER);
+ //ResultReceiver receiver = intent.getParcelableExtra(EXTRA_RECEIVER);
PodcastItem podcast = (PodcastItem) intent.getSerializableExtra(EXTRA_URL);
//final String param2 = intent.getStringExtra(EXTRA_PARAM2);
//handleActionDownload(podcast);
@@ -134,9 +134,8 @@ public class PodcastDownloadService extends IntentService {
m.update(WEB_URL_TO_FILE.trim().getBytes());
byte[] digest = m.digest();
BigInteger bigInt = new BigInteger(1,digest);
- String hashtext = bigInt.toString(16);
- return hashtext;
+ return bigInt.toString(16);
} catch (Exception e) {
e.printStackTrace();
}
@@ -182,8 +181,7 @@ public class PodcastDownloadService extends IntentService {
while ((count = input.read(data)) != -1) {
total += count;
- int progress = (int) (total * 100 / fileLength);
- podcast.downloadProgress = progress;
+ podcast.downloadProgress = (int) (total * 100 / fileLength);
eventBus.post(new DownloadProgressUpdate(podcast));
output.write(data, 0, count);