mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2024-08-07 14:32:34 +02:00
Fix
This commit is contained in:
parent
6d47d24b56
commit
a9ee2e5065
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user