mirror of
https://github.com/YTVanced/VancedMicroG
synced 2024-11-27 21:53:00 +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) {
|
||||
|
|
Loading…
Reference in a new issue