optimize performance

This commit is contained in:
BinTianqi
2024-08-12 20:17:37 +08:00
parent 7ab60e4dc9
commit 439a75bb84
14 changed files with 177 additions and 163 deletions

View File

@@ -133,22 +133,6 @@ fun ShizukuActivate() {
}
}
AnimatedVisibility(showProfileOwnerButton&&showDeviceOwnerButton) {
Button(
onClick = {
coScope.launch{
outputText = service!!.execute(context.getString(R.string.dpm_activate_po_command))
outputTextScrollState.animateScrollTo(0)
delay(500)
showProfileOwnerButton = !context.isProfileOwner
}
},
enabled = enabled
) {
Text(text = stringResource(R.string.activate_profile_owner))
}
}
AnimatedVisibility(showDeviceOwnerButton && showProfileOwnerButton) {
Button(
onClick = {