Affiliation Ids and wipeData options

This commit is contained in:
BinTianqi
2024-02-12 14:28:54 +08:00
parent 1ea203d331
commit 0aa514fc4b
9 changed files with 153 additions and 70 deletions

View File

@@ -309,10 +309,12 @@ fun DpmPermissions(navCtrl:NavHostController){
}
}
}
if((isDeviceOwner(myDpm)||isProfileOwner(myDpm))&&VERSION.SDK_INT>=24){
if(VERSION.SDK_INT>=24&&isDeviceOwner(myDpm)){
DeviceOwnerInfo(R.string.owner_lockscr_info,R.string.place_holder,R.string.owner_lockscr_info,focusManager,myContext,
{myDpm.deviceOwnerLockScreenInfo},{content -> myDpm.setDeviceOwnerLockScreenInfo(myComponent,content)})
}
if((isDeviceOwner(myDpm)||isProfileOwner(myDpm))&&VERSION.SDK_INT>=24){
DeviceOwnerInfo(R.string.support_msg,R.string.support_msg_desc,R.string.message,focusManager,myContext,
{myDpm.getShortSupportMessage(myComponent)},{content -> myDpm.setShortSupportMessage(myComponent,content)})
DeviceOwnerInfo(R.string.long_support_msg,R.string.long_support_msg_desc,R.string.message,focusManager,myContext,