mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
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:
@@ -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()
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user