Skip to content

Commit

Permalink
fix(MicroG Support): Remove check
Browse files Browse the repository at this point in the history
  • Loading branch information
YT-Advanced committed Mar 27, 2024
1 parent 8f0aba6 commit cbe49e5
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public class MicroGPatch {
private static final String MICROG_PACKAGE_NAME = MICROG_VENDOR + ".android.gms";
private static final String MICROG_DOWNLOAD_LINK = "https://github.com/YT-Advanced/GmsCore/releases/latest";
private static final Uri MICROG_PROVIDER = Uri.parse("content://" + MICROG_VENDOR + ".android.gsf.gservices/prefix");
private static final String YOUTUBE_PACKAGE_NAME = "com.google.android.youtube";

private static void startIntent(Context context, String uriString, String... message) {
for (String string : message) {
Expand All @@ -35,13 +34,6 @@ private static void startIntent(Context context, String uriString, String... mes
}

public static void checkAvailability(@NonNull Context context) {
try {
context.getPackageManager().getPackageInfo(YOUTUBE_PACKAGE_NAME, PackageManager.GET_META_DATA);
} catch (PackageManager.NameNotFoundException exception) {
LogHelper.printInfo(() -> "Stock YouTube was not found", exception);
ReVancedUtils.showToastLong("Please reinstall your Stock YouTube from Play Store");
}

try {
context.getPackageManager().getPackageInfo(MICROG_PACKAGE_NAME, PackageManager.GET_ACTIVITIES);
} catch (PackageManager.NameNotFoundException exception) {
Expand Down

0 comments on commit cbe49e5

Please sign in to comment.