mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-04-30 14:04:26 +02:00
fix: Ignore empty results on root installed apps listing
This commit is contained in:
parent
ae801a2918
commit
d0fb6ac3c0
@ -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…
x
Reference in New Issue
Block a user