mirror of
https://github.com/awfixers-stuff/OwnDroid.git
synced 2026-03-23 11:05:59 +00:00
fix app crash when enter password info
This commit is contained in:
@@ -139,8 +139,10 @@ private fun PasswordInfo(){
|
|||||||
if(isDeviceOwner(myDpm)|| isProfileOwner(myDpm)){
|
if(isDeviceOwner(myDpm)|| isProfileOwner(myDpm)){
|
||||||
Text(stringResource(R.string.is_password_sufficient, myDpm.isActivePasswordSufficient))
|
Text(stringResource(R.string.is_password_sufficient, myDpm.isActivePasswordSufficient))
|
||||||
}
|
}
|
||||||
val pwdFailedAttempts = myDpm.currentFailedPasswordAttempts
|
if(myDpm.isAdminActive(myComponent)){
|
||||||
Text(text = stringResource(R.string.password_failed_attempts_is, pwdFailedAttempts))
|
val pwdFailedAttempts = myDpm.currentFailedPasswordAttempts
|
||||||
|
Text(text = stringResource(R.string.password_failed_attempts_is, pwdFailedAttempts))
|
||||||
|
}
|
||||||
if(VERSION.SDK_INT>=28&&isProfileOwner(myDpm)&&myDpm.isManagedProfile(myComponent)){
|
if(VERSION.SDK_INT>=28&&isProfileOwner(myDpm)&&myDpm.isManagedProfile(myComponent)){
|
||||||
val unifiedPwd = myDpm.isUsingUnifiedPassword(myComponent)
|
val unifiedPwd = myDpm.isUsingUnifiedPassword(myComponent)
|
||||||
Text(stringResource(R.string.is_using_unified_password, unifiedPwd))
|
Text(stringResource(R.string.is_using_unified_password, unifiedPwd))
|
||||||
|
|||||||
Reference in New Issue
Block a user