Skip to content

Commit

Permalink
Small error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminHalko committed Aug 28, 2023
1 parent 20e7e59 commit 2c20e77
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/services/patcher_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,19 @@ class PatcherAPI {
Future<List<ApplicationWithIcon>> getFilteredInstalledApps(
bool showUniversalPatches,
) async {
List<ApplicationWithIcon> filteredApps = [];
final List<ApplicationWithIcon> filteredApps = [];
final bool allAppsIncluded =
_universalPatches.isNotEmpty &&
showUniversalPatches;
if (allAppsIncluded) {
filteredApps = await DeviceApps.getInstalledApplications(
final appList = await DeviceApps.getInstalledApplications(
includeAppIcons: true,
onlyAppsWithLaunchIntent: true,
) as List<ApplicationWithIcon>;
);

for(final app in appList) {
filteredApps.add(app as ApplicationWithIcon);
}
}
for (final packageName in _compatiblePackages) {
try {
Expand Down

0 comments on commit 2c20e77

Please sign in to comment.