Skip to content

Commit

Permalink
manager: refesh after action
Browse files Browse the repository at this point in the history
  • Loading branch information
Admirepowered committed Jan 7, 2025
1 parent 6079a1c commit 6f4341e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/src/main/java/me/bmax/apatch/ui/screen/APM.kt
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ fun APModuleScreen(navigator: DestinationsNavigator) {
viewModel.fetchModuleList()
}
}

val webUILauncher = rememberLauncherForActivityResult(
contract = ActivityResultContracts.StartActivityForResult()
) { viewModel.fetchModuleList() }
//TODO: FIXME -> val isSafeMode = Natives.getSafeMode()
val isSafeMode = false
val hasMagisk = hasMagisk()
Expand Down Expand Up @@ -201,7 +203,7 @@ fun APModuleScreen(navigator: DestinationsNavigator) {
},
onClickModule = { id, name, hasWebUi ->
if (hasWebUi) {
context.startActivity(
webUILauncher.launch(
Intent(
context, WebUIActivity::class.java
).setData(Uri.parse("apatch://webui/$id")).putExtra("id", id)
Expand Down

0 comments on commit 6f4341e

Please sign in to comment.