mirror of
https://github.com/YTVanced/VancedMicroG
synced 2024-11-24 04:05:13 +00:00
Fix
This commit is contained in:
parent
6d47d24b56
commit
a9ee2e5065
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue