mirror of
https://github.com/revanced/revanced-patches
synced 2025-02-19 08:46:50 +01:00
chore: update gradle and dependencies
This commit is contained in:
parent
6c6349ac2e
commit
4f64506f40
@ -2,6 +2,7 @@ package app.revanced.integrations.patches;
|
|||||||
|
|
||||||
import static app.revanced.integrations.utils.StringRef.str;
|
import static app.revanced.integrations.utils.StringRef.str;
|
||||||
|
|
||||||
|
import android.annotation.TargetApi;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.pm.PackageManager;
|
import android.content.pm.PackageManager;
|
||||||
@ -28,6 +29,7 @@ public class MicroGSupport {
|
|||||||
context.startActivity(intent);
|
context.startActivity(intent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TargetApi(26)
|
||||||
public static void checkAvailability() {
|
public static void checkAvailability() {
|
||||||
var context = Objects.requireNonNull(ReVancedUtils.getContext());
|
var context = Objects.requireNonNull(ReVancedUtils.getContext());
|
||||||
|
|
||||||
@ -41,6 +43,7 @@ public class MicroGSupport {
|
|||||||
System.exit(0);
|
System.exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
try (var client = context.getContentResolver().acquireContentProviderClient(VANCED_MICROG_PROVIDER)) {
|
try (var client = context.getContentResolver().acquireContentProviderClient(VANCED_MICROG_PROVIDER)) {
|
||||||
if (client != null) return;
|
if (client != null) return;
|
||||||
LogHelper.printInfo(() -> "Vanced MicroG is not running in the background");
|
LogHelper.printInfo(() -> "Vanced MicroG is not running in the background");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user