hide some entries if permission is not enough

This commit is contained in:
BinTianqi
2024-06-04 13:47:35 +08:00
parent 45317e3975
commit c8e7b23cd8
9 changed files with 56 additions and 70 deletions

View File

@@ -168,9 +168,7 @@ fun ShizukuActivate() {
}
}
if(
VERSION.SDK_INT >= 30 && isProfileOwner(dpm) && dpm.isManagedProfile(receiver) && !dpm.isOrganizationOwnedDeviceWithManagedProfile
) {
if(VERSION.SDK_INT >= 30 && !dpm.isOrgProfile(receiver)) {
AnimatedVisibility(showOrgProfileOwnerButton) {
Button(
onClick = {