Skip to content

Commit

Permalink
防止小窗崩溃
Browse files Browse the repository at this point in the history
  • Loading branch information
teble committed Apr 14, 2024
1 parent 9a8c635 commit 9cb7141
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ class ModuleActivity : BaseActivity(), CoroutineScope by MainScope() {
injectRes(it.resources)
}
}

override fun onResume() {
super.onResume()
composeViewContext.get()?.let {
injectRes(it.resources)
}
}
}

fun colors(
Expand Down

0 comments on commit 9cb7141

Please sign in to comment.