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

Commit d7734ae2 authored by Liana Kazanova (xWF)'s avatar Liana Kazanova (xWF) Committed by Android (Google) Code Review
Browse files

Merge "Revert "Update UserIconInfo to include LauncherUserInfo configs"" into main

parents 1d0c3f71 3f34d9b7
Loading
Loading
Loading
Loading
+0 −21
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@ import static com.android.launcher3.icons.BitmapInfo.FLAG_CLONE;
import static com.android.launcher3.icons.BitmapInfo.FLAG_PRIVATE;
import static com.android.launcher3.icons.BitmapInfo.FLAG_WORK;

import android.os.Bundle;
import android.os.UserHandle;

import androidx.annotation.IntDef;
@@ -47,8 +46,6 @@ public class UserIconInfo {

    public final long userSerial;

    private final Bundle mUserConfig;

    public UserIconInfo(UserHandle user, @UserType int type) {
        this(user, type, user != null ? user.hashCode() : 0);
    }
@@ -57,15 +54,6 @@ public class UserIconInfo {
        this.user = user;
        this.type = type;
        this.userSerial = userSerial;
        this.mUserConfig = Bundle.EMPTY;
    }

    public UserIconInfo(UserHandle user, @UserType int type, long userSerial,
            @NonNull Bundle userConfig) {
        this.user = user;
        this.type = type;
        this.userSerial = userSerial;
        this.mUserConfig = userConfig;
    }

    public boolean isMain() {
@@ -90,13 +78,4 @@ public class UserIconInfo {
                .setFlag(FLAG_CLONE, isCloned())
                .setFlag(FLAG_PRIVATE, isPrivate());
    }

    /**
     * Returns additional configs for the user, e.g., whether to hide the private space entrypoint
     * when locked.
     */
    @NonNull
    public Bundle getUserConfig() {
        return mUserConfig;
    }
}