mirror of
https://github.com/awfixers-stuff/OwnDroid.git
synced 2026-03-23 19:15:58 +00:00
fix creating managed profile problem
This commit is contained in:
@@ -76,7 +76,7 @@ fun ApplicationManage(){
|
||||
keyboardActions = KeyboardActions(onDone = {focusMgr.clearFocus()})
|
||||
)
|
||||
}
|
||||
if(VERSION.SDK_INT>=24){
|
||||
if(VERSION.SDK_INT>=24&&isDeviceOwner(myDpm)){
|
||||
val isSuspended: Boolean = try{ myDpm.isPackageSuspended(myComponent,pkgName) }
|
||||
catch(e:NameNotFoundException){ false }
|
||||
catch(w:NameNotFoundException){ false }
|
||||
|
||||
Reference in New Issue
Block a user