diff options
author | Glenn Guy <glennguy83@gmail.com> | 2018-10-17 20:15:35 +1100 |
---|---|---|
committer | Glenn Guy <glennguy83@gmail.com> | 2018-10-17 20:15:35 +1100 |
commit | 510944ab35b5da1e2fc2c9f2963c32f3a2b12bbf (patch) | |
tree | c65cab1206e6505a698c3647060d2c88353d0bc4 /app/src/main/java/github/daneren2005 | |
parent | 9109204bbc34a42dd1a720cd341eb7a2a775d7cf (diff) | |
download | dsub-510944ab35b5da1e2fc2c9f2963c32f3a2b12bbf.tar.gz dsub-510944ab35b5da1e2fc2c9f2963c32f3a2b12bbf.tar.bz2 dsub-510944ab35b5da1e2fc2c9f2963c32f3a2b12bbf.zip |
Ensure startForeground() is called
Fixes #890
Diffstat (limited to 'app/src/main/java/github/daneren2005')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/service/DownloadService.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java index 9a0f606e..605ec204 100644 --- a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java +++ b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java @@ -309,6 +309,9 @@ public class DownloadService extends Service { public int onStartCommand(Intent intent, int flags, int startId) { super.onStartCommand(intent, flags, startId); lifecycleSupport.onStart(intent); + if(Build.VERSION.SDK_INT >= 26) { + Notifications.shutGoogleUpNotification(this); + } return START_NOT_STICKY; } |