Skip to content

Commit

Permalink
* [Issue #4] Bug in the implementation of Api.getApps() leading to us…
Browse files Browse the repository at this point in the history
…ers 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.
  • Loading branch information
amaa-99 committed Jul 28, 2023
1 parent 30bf035 commit 6b97d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/dev/ukanth/ufirewall/Api.java
Original file line number Diff line number Diff line change
Expand Up @@ -1422,7 +1422,7 @@ public static List<PackageInfoData> getApps(Context ctx, GetAppList appList) {
Matcher m = p.matcher(user.toString());
if (m.find() && m.groupCount() > 0) {
int id = Integer.parseInt(m.group(1));
if (id > 0) {
if (id >= 0) {
listOfUids.add(id);
}
}
Expand Down

0 comments on commit 6b97d84

Please sign in to comment.