mirror of https://github.com/YTVanced/VancedMicroG
Fix
This commit is contained in:
parent
088f6d4290
commit
4f2fa9041d
|
@ -29,7 +29,7 @@ buildscript {
|
||||||
|
|
||||||
ext.androidBuildVersionTools = "29.0.3"
|
ext.androidBuildVersionTools = "29.0.3"
|
||||||
|
|
||||||
ext.androidMinSdk = 23
|
ext.androidMinSdk = 21
|
||||||
ext.androidTargetSdk = 29
|
ext.androidTargetSdk = 29
|
||||||
ext.androidCompileSdk = 29
|
ext.androidCompileSdk = 29
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ import android.os.PowerManager;
|
||||||
import android.provider.Settings;
|
import android.provider.Settings;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
|
import androidx.annotation.RequiresApi;
|
||||||
import androidx.core.app.NotificationCompat;
|
import androidx.core.app.NotificationCompat;
|
||||||
|
|
||||||
import com.mgoogle.android.gms.R;
|
import com.mgoogle.android.gms.R;
|
||||||
|
@ -29,6 +30,7 @@ public class ForegroundServiceContext extends ContextWrapper {
|
||||||
super(base);
|
super(base);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@RequiresApi(23)
|
||||||
@Override
|
@Override
|
||||||
public ComponentName startService(Intent service) {
|
public ComponentName startService(Intent service) {
|
||||||
PowerManager powerManager = (PowerManager) getSystemService(Context.POWER_SERVICE);
|
PowerManager powerManager = (PowerManager) getSystemService(Context.POWER_SERVICE);
|
||||||
|
|
Loading…
Reference in New Issue