Hide zombie secure folder tab

This commit is contained in:
leekleak 2025-02-24 19:54:42 +02:00
parent 4330b2a712
commit 594a7303d3

View File

@ -99,12 +99,14 @@ class ProfileManager(
val profiles = mutableListOf<ProfileWithState>() val profiles = mutableListOf<ProfileWithState>()
for (userHandle in launcherApps.profiles) { for (userHandle in launcherApps.profiles) {
val serial = userManager.getSerialNumberForUser(userHandle)
if (android.os.Build.MANUFACTURER == "samsung" && serial == 150L) continue // Hide Samsung Secure Folder
profiles.add( profiles.add(
ProfileWithState( ProfileWithState(
Profile( Profile(
type = getProfileType(userHandle), type = getProfileType(userHandle),
userHandle = userHandle, userHandle = userHandle,
serial = userManager.getSerialNumberForUser(userHandle), serial = serial,
), ),
getProfileState(userHandle), getProfileState(userHandle),
) )