Fix a problem of Lock screen now

Remove unused string resource
This commit is contained in:
BinTianqi
2024-08-14 12:40:02 +08:00
parent 32f43ce801
commit 8c40a5a716
7 changed files with 61 additions and 64 deletions

View File

@@ -289,15 +289,13 @@ private fun ProfileOwner() {
Text(text = stringResource(R.string.profile_owner), style = typography.headlineLarge)
Text(stringResource(if(profileOwner) R.string.activated else R.string.deactivated), style = typography.titleLarge)
Spacer(Modifier.padding(vertical = 5.dp))
if(VERSION.SDK_INT >= 24) {
if(profileOwner) {
Button(
onClick = { deactivateDialog = true },
enabled = !dpm.isManagedProfile(receiver),
colors = ButtonDefaults.buttonColors(containerColor = colorScheme.error, contentColor = colorScheme.onError)
) {
Text(stringResource(R.string.deactivate))
}
if(VERSION.SDK_INT >= 24 && profileOwner) {
Button(
onClick = { deactivateDialog = true },
enabled = !dpm.isManagedProfile(receiver),
colors = ButtonDefaults.buttonColors(containerColor = colorScheme.error, contentColor = colorScheme.onError)
) {
Text(stringResource(R.string.deactivate))
}
}
}