mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2025-02-02 14:07:32 +01:00
Fix FC
This commit is contained in:
parent
7b97618467
commit
a1813f2bcc
@ -24,7 +24,7 @@ public class ForegroundServiceContext extends ContextWrapper {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ComponentName startService(Intent service) {
|
public ComponentName startService(Intent service) {
|
||||||
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !isIgnoringBatteryOptimizations() && !isAppOnForeground()) {
|
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && isIgnoringBatteryOptimizations() && !isAppOnForeground()) {
|
||||||
Log.d(TAG, "Starting in foreground mode.");
|
Log.d(TAG, "Starting in foreground mode.");
|
||||||
service.putExtra(EXTRA_FOREGROUND, true);
|
service.putExtra(EXTRA_FOREGROUND, true);
|
||||||
return super.startForegroundService(service);
|
return super.startForegroundService(service);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user