aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorGlenn Guy <glennguy83@gmail.com>2018-10-17 20:15:35 +1100
committerGlenn Guy <glennguy83@gmail.com>2018-10-17 20:15:35 +1100
commit510944ab35b5da1e2fc2c9f2963c32f3a2b12bbf (patch)
treec65cab1206e6505a698c3647060d2c88353d0bc4 /app/src
parent9109204bbc34a42dd1a720cd341eb7a2a775d7cf (diff)
downloaddsub-510944ab35b5da1e2fc2c9f2963c32f3a2b12bbf.tar.gz
dsub-510944ab35b5da1e2fc2c9f2963c32f3a2b12bbf.tar.bz2
dsub-510944ab35b5da1e2fc2c9f2963c32f3a2b12bbf.zip
Ensure startForeground() is called
Fixes #890
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/service/DownloadService.java3
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;
}