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

Commit 08c3e8f5 authored by Alina Zaidi's avatar Alina Zaidi
Browse files

Use equals() to compare UserHandle when building LauncherAtom#ItemInfo.

Bug: 204756057
Test: Manually verified correct behave through logs
Change-Id: Ic314e38978893984bac89988bfc3229a21d0214e
parent e6a04336
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -373,7 +373,7 @@ public class ItemInfo {

    protected LauncherAtom.ItemInfo.Builder getDefaultItemInfoBuilder() {
        LauncherAtom.ItemInfo.Builder itemBuilder = LauncherAtom.ItemInfo.newBuilder();
        itemBuilder.setIsWork(user != Process.myUserHandle());
        itemBuilder.setIsWork(!Process.myUserHandle().equals(user));
        return itemBuilder;
    }