Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use application context to access package manager
  • Loading branch information
Mosc committed Jun 11, 2022
commit 96d7b94032559f8c129fd84b1039535fa9696557
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ LaunchStatus launch(
}

private Set<String> getNonBrowserPackageNames(Intent specializedIntent) {
PackageManager packageManager = activity.getPackageManager();
PackageManager packageManager = applicationContext.getPackageManager();

// Get all apps that resolve the specific URL.
Set<String> specializedPackageNames = queryPackageNames(packageManager, specializedIntent);
Expand Down