Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2ceac5ad authored by Jeremy Joslin's avatar Jeremy Joslin
Browse files

Use UserHandle.USER_SYSTEM in place of 0.

Change-Id: I3bc5f2d326b0b5c6797f3ac259d0e3d42a3afa0f
parent 85659069
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ public final class NetworkScorerAppManager {
    public static Collection<NetworkScorerAppData> getAllValidScorers(Context context) {
        // Network scorer apps can only run as the primary user so exit early if we're not the
        // primary user.
        if (UserHandle.getCallingUserId() != 0 /*USER_SYSTEM*/) {
        if (UserHandle.getCallingUserId() != UserHandle.USER_SYSTEM) {
            return Collections.emptyList();
        }