From a9ee2e5065abd0a3e2785dfe74ed765c0eb8fd5a Mon Sep 17 00:00:00 2001 From: Oizaro <45825534+Oizaro@users.noreply.github.com> Date: Sun, 20 Sep 2020 01:10:05 +0200 Subject: [PATCH] Fix --- .../java/org/microg/gms/common/ForegroundServiceContext.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/play-services-core/src/main/java/org/microg/gms/common/ForegroundServiceContext.java b/play-services-core/src/main/java/org/microg/gms/common/ForegroundServiceContext.java index 9d42bc8b..25ba55d6 100644 --- a/play-services-core/src/main/java/org/microg/gms/common/ForegroundServiceContext.java +++ b/play-services-core/src/main/java/org/microg/gms/common/ForegroundServiceContext.java @@ -36,7 +36,7 @@ public class ForegroundServiceContext extends ContextWrapper { if (!isIgnoringBatteryOptimizations() && !isAppOnForeground()) { Log.d(TAG, "Starting in foreground mode."); service.putExtra(EXTRA_FOREGROUND, true); - if (android.os.Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) { + if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { return super.startService(service); } if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { @@ -100,4 +100,4 @@ public class ForegroundServiceContext extends ContextWrapper { .bigText(context.getResources().getString(R.string.notification_service_content))) .build(); } -} \ No newline at end of file +}