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