Skip to content

Commit 3fc3b49

Browse files
author
amaa-99
committed
* [Issue #4] Bug in the implementation of Api.getApps() leading to users with id 0 getting ignored.
Fixed a bug in the implementation of Api.getApps() leading to users with id 0 getting ignored and subsequently to the returned apps list being empty.
1 parent f884ef5 commit 3fc3b49

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/java/dev/ukanth/ufirewall

1 file changed

+1
-1
lines changed

app/src/main/java/dev/ukanth/ufirewall/Api.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ public static List<PackageInfoData> getApps(Context ctx, GetAppList appList) {
14221422
Matcher m = p.matcher(user.toString());
14231423
if (m.find() && m.groupCount() > 0) {
14241424
int id = Integer.parseInt(m.group(1));
1425-
if (id > 0) {
1425+
if (id >= 0) {
14261426
listOfUids.add(id);
14271427
}
14281428
}

0 commit comments

Comments
 (0)