From 510944ab35b5da1e2fc2c9f2963c32f3a2b12bbf Mon Sep 17 00:00:00 2001 From: Glenn Guy Date: Wed, 17 Oct 2018 20:15:35 +1100 Subject: Ensure startForeground() is called Fixes #890 --- app/src/main/java/github/daneren2005/dsub/service/DownloadService.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/src/main/java/github') 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; } -- cgit v1.2.3