Skip to content

Instantly share code, notes, and snippets.

@raulh82vlc
Last active March 1, 2021 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raulh82vlc/1795d7693c4e1e559e3e1795d2143757 to your computer and use it in GitHub Desktop.
Save raulh82vlc/1795d7693c4e1e559e3e1795d2143757 to your computer and use it in GitHub Desktop.
SearchComposablesUI::startComposingViews
@ActivityScope
class SearchComposablesUI @Inject constructor() {
private var composeView: ComposeView? = null
private var activity: SearchTweetActivity? = null
fun setComposeView(composeView: ComposeView, activity: SearchTweetActivity) {
this.composeView = composeView
this.activity = activity
}
fun startComposingViews(uiState: TweetsUIState) {
this.composeView?.setContent {
TweetsWithSearchTheme { // default MaterialTheme
StatesUI(uiState)
}
}
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment