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

Commit f6b03684 authored by Himanshu Gupta's avatar Himanshu Gupta
Browse files

Adding Private Profile support in UserIconInfo

Bug: 289223923
Flag: None
Test: Presubmit
Change-Id: Icf79a71b8d635490562f5688dbc2407f62267b19
parent 7374c4da
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -30,7 +30,9 @@ public class UserIconInfo {
    public static final int TYPE_WORK = 1;
    public static final int TYPE_CLONED = 2;

    @IntDef({TYPE_MAIN, TYPE_WORK, TYPE_CLONED})
    public static final int TYPE_PRIVATE = 3;

    @IntDef({TYPE_MAIN, TYPE_WORK, TYPE_CLONED, TYPE_PRIVATE})
    public @interface UserType { }

    public final UserHandle user;
@@ -60,4 +62,8 @@ public class UserIconInfo {
    public boolean isCloned() {
        return type == TYPE_CLONED;
    }

    public boolean isPrivate() {
        return type == TYPE_PRIVATE;
    }
}