Revert "manager: refresh superuser applist on appprofile exit"

This reverts commit fcbb02a115.
This commit is contained in:
Rifat Azad
2025-06-12 08:46:38 +06:00
parent 7abc9bc821
commit f231cbdba7
2 changed files with 0 additions and 11 deletions

View File

@@ -60,13 +60,6 @@ fun SuperUserScreen(navigator: DestinationsNavigator) {
}
}
LaunchedEffect(Unit) {
if (viewModel.refreshOnReturn) {
viewModel.fetchAppList()
viewModel.refreshOnReturn = false
}
}
Scaffold(
topBar = {
SearchAppBar(
@@ -131,7 +124,6 @@ fun SuperUserScreen(navigator: DestinationsNavigator) {
) {
items(viewModel.appList, key = { it.packageName + it.uid }) { app ->
AppItem(app) {
viewModel.refreshOnReturn = true
navigator.navigate(AppProfileScreenDestination(app))
}
}

View File

@@ -28,9 +28,6 @@ import java.util.*
class SuperUserViewModel : ViewModel() {
val isPlatformAlive get() = Platform.isAlive
var refreshOnReturn by mutableStateOf(false)
public set
companion object {
private const val TAG = "SuperUserViewModel"
private var apps by mutableStateOf<List<AppInfo>>(emptyList())