mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 01:01:56 +01:00
fix: Ignore empty results on root installed apps listing
This commit is contained in:
parent
ae801a2918
commit
d0fb6ac3c0
1 changed files with 3 additions and 1 deletions
|
@ -58,7 +58,9 @@ class RootAPI {
|
|||
cmd: 'ls "$_managerDirPath"',
|
||||
);
|
||||
if (res != null) {
|
||||
return res.split('\n').map((pack) => pack.trim()).toList();
|
||||
List<String> apps = res.split('\n');
|
||||
apps.removeWhere((pack) => pack.isEmpty);
|
||||
return apps.map((pack) => pack.trim()).toList();
|
||||
}
|
||||
} on Exception {
|
||||
return List.empty();
|
||||
|
|
Loading…
Reference in a new issue