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

Commit 3f34d9b7 authored by Pechetty Sravani (xWF)'s avatar Pechetty Sravani (xWF) Committed by Android (Google) Code Review
Browse files

Revert "Update UserIconInfo to include LauncherUserInfo configs"

Revert submission 29352757-update-usericoninfo

Reason for revert: <DroidMonitor created revert due to b/379000263. Will be verified through ABTD for standard investigation.>

Reverted changes: /q/submissionid:29352757-update-usericoninfo

Change-Id: Icfe55f6a68be93dad14ec098635168a0e14805bf
parent a614b9dc
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;
    }
}