fix: Do not hardcode any predefined packages

This commit is contained in:
oSumAtrIX
2023-09-29 20:12:39 +02:00
parent 15b8613d3c
commit 2e8e3b0d1e
4 changed files with 9 additions and 61 deletions

View File

@ -147,17 +147,7 @@ class AppInfoViewModel extends BaseViewModel {
}
String getAppliedPatchesString(List<String> appliedPatches) {
final List<String> names = appliedPatches
.map(
(p) => p
.replaceAll('-', ' ')
.split('-')
.join(' ')
.toTitleCase()
.replaceFirst('Microg', 'MicroG'),
)
.toList();
return '\u2022 ${names.join('\n\u2022 ')}';
return '\u2022 ${appliedPatches.join('\n\u2022 ')}';
}
void openApp(PatchedApplication app) {