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
This commit is contained in:
olly 2018-05-06 13:40:09 -07:00 committed by Oliver Woodman
parent 7afdf84a9d
commit 6e8867c39e

View File

@ -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();