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:
parent
7afdf84a9d
commit
6e8867c39e
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user