feat: fix list contributors and add patched apps changelog (wip)

This commit is contained in:
Alberto Ponces
2022-08-26 02:01:53 +01:00
parent bfbcb510c4
commit 45f4a5b207
7 changed files with 88 additions and 69 deletions

View File

@@ -27,12 +27,15 @@ class RootAPI {
);
if (res != null) {
List<String> apps = res.split('\n');
List<String> toRemove = [];
for (String packageName in apps) {
bool isInstalled = await isAppInstalled(packageName);
if (!isInstalled) {
apps.remove(packageName);
toRemove.add(packageName);
}
}
apps.removeWhere((a) => toRemove.contains(a));
return apps;
}
} on Exception {
return List.empty();