Skip to content

Commit

Permalink
应该是真的修好了
Browse files Browse the repository at this point in the history
  • Loading branch information
sky130 authored Apr 9, 2024
1 parent 009b9fd commit 7871d9e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ class SceneFragment : ViewFragmentX<FragmentMainSceneBinding, MainViewModel>(),

fun onItemClick(item: Any?) {
item as MiotScenes.Result.Scene
miot.runScene(item).call(viewModel.viewModelScope)
viewModel.viewModelScope.launch(Dispatchers.IO) {
miot.runScene(item).execute()
}
}

fun onItemLongClick(item: Any?): Boolean {
Expand All @@ -51,4 +53,4 @@ class SceneFragment : ViewFragmentX<FragmentMainSceneBinding, MainViewModel>(),
override fun onRefresh() {
AppRepository.updateScene()
}
}
}

0 comments on commit 7871d9e

Please sign in to comment.