Revert "Revert "Fix the badge in badge (triple badging), by simp..."

Revert submission 25263180-revert-24721954-cherrypick-removeBadgeInBadge-dia2ji7r7td-RZRSBRGYSA

Reason for revert: Fix the test that uses the work USERHANDLE that may cause this security exception https://paste.googleplex.com/5530091189698560

Reverted changes: /q/submissionid:25263180-revert-24721954-cherrypick-removeBadgeInBadge-dia2ji7r7td-RZRSBRGYSA

Change-Id: I82dbf155b7bc41a496d50884193f5f168cb46f31
This commit is contained in:
Brandon Dayauon
2023-11-03 14:41:45 +00:00
parent 511421c12f
commit 8fe6bd2572
2 changed files with 16 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ import android.os.UserManager;
import androidx.annotation.AnyThread;
import androidx.annotation.NonNull;
import androidx.annotation.VisibleForTesting;
import androidx.annotation.WorkerThread;
import com.android.launcher3.util.MainThreadInitializedObject;
@@ -154,6 +155,11 @@ public class UserCache implements SafeCloseable {
.orElse(Process.myUserHandle());
}
@VisibleForTesting
public void putToCache(UserHandle userHandle, UserIconInfo info) {
mUserToSerialMap.put(userHandle, info);
}
/**
* @see UserManager#getUserProfiles()
*/