add animations to UserRestriction page

This commit is contained in:
BinTianqi
2024-02-07 21:33:26 +08:00
parent 3d74867fee
commit 62a4376851
8 changed files with 143 additions and 179 deletions

View File

@@ -330,8 +330,9 @@ fun ApplicationManage(){
if(count>0) { listText += "\n" }
}
}
refreshList()
Text(text = listText, style = bodyTextStyle)
var inited by remember{mutableStateOf(false)}
if(!inited){refreshList(); inited=true}
Text(text = if(listText!=""){listText}else{""}, style = bodyTextStyle)
Row(modifier = Modifier.fillMaxWidth(),horizontalArrangement = Arrangement.SpaceBetween){
Button(
onClick = {
@@ -372,8 +373,9 @@ fun ApplicationManage(){
imeListText = ""
for(eachIme in imeList){ imeListText += "$eachIme \n" }
}
refreshList()
Text(text = imeListText, style = bodyTextStyle)
var inited by remember{mutableStateOf(false)}
if(!inited){refreshList();inited=true}
Text(text = if(imeListText!=""){imeListText}else{""}, style = bodyTextStyle)
Row(modifier = Modifier.fillMaxWidth(),horizontalArrangement = Arrangement.SpaceBetween){
Button(
onClick = {