Skip to content

Commit

Permalink
fix(MicroG Support): Add stock app package name checking
Browse files Browse the repository at this point in the history
  • Loading branch information
YT-Advanced committed Mar 27, 2024
1 parent df3f1dc commit 16f7871
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private static void startIntent(Context context, String uriString, String... mes

public static void checkAvailability(@NonNull Context context) {
try {
context.getPackageManager().getPackageInfo(YOUTUBE_MUSIC_PACKAGE_NAME, 0);
context.getPackageManager().getPackageInfo(YOUTUBE_MUSIC_PACKAGE_NAME, PackageManager.GET_META_DATA);
} catch (PackageManager.NameNotFoundException exception) {
LogHelper.printInfo(() -> "Stock YouTube Music was not found", exception);
ReVancedUtils.showToastLong("Please install Stock YouTube Music from Play Store");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private static void startIntent(Context context, String uriString, String... mes

public static void checkAvailability(@NonNull Context context) {
try {
context.getPackageManager().getPackageInfo(YOUTUBE_PACKAGE_NAME, 0);
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");
Expand Down

0 comments on commit 16f7871

Please sign in to comment.