Commit 6e8867c3 by olly Committed by Oliver Woodman

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
parent 7afdf84a
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment