From 6e8867c39ee9ba7ceaf6dc25bcda21ebb67c732c Mon Sep 17 00:00:00 2001 From: olly Date: Sun, 6 May 2018 13:40:09 -0700 Subject: [PATCH] Fix broken notification (missing line in onStartCommand) Also only listen to requirements when actually necessary, else we can put the service into the foreground when it needn't be there. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=195597750 --- .../com/google/android/exoplayer2/offline/DownloadService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadService.java b/library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadService.java index 091b215280..908aae481a 100644 --- a/library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadService.java +++ b/library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadService.java @@ -202,6 +202,7 @@ public abstract class DownloadService extends Service { @Override public int onStartCommand(Intent intent, int flags, int startId) { + lastStartId = startId; String intentAction = null; if (intent != null) { intentAction = intent.getAction();