Last active
March 1, 2021 11:29
-
-
Save raulh82vlc/1795d7693c4e1e559e3e1795d2143757 to your computer and use it in GitHub Desktop.
SearchComposablesUI::startComposingViews
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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