-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fragment] Replace bind with setOutput function. #319
Conversation
9a5d94d
to
46f395d
Compare
|
||
|
||
abstract class ComposeViewFactory<RenderModel> : ViewFactory<RenderModel> { | ||
|
||
override fun create(inflater: LayoutInflater, container: ViewGroup?): FeatureView<RenderModel> { | ||
val view = ComposeView(inflater.context) | ||
var firstRender = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved in to formula fragment
JaCoCo Code Coverage 79.39% ✅
Generated by 🚫 Danger |
val lifecycleCallbacks: FragmentLifecycleCallback? = null, | ||
) { | ||
class State<RenderModel>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need this State
class anymore
/** | ||
* Binds [FeatureView.State] to a [render] function. | ||
*/ | ||
internal class FeatureViewBindFunction<RenderModel>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
What
Simplifying
FeatureView
by replacingbind
function with asetOutput
one.