mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
updating workaround factory doc
This commit is contained in:
parent
cca50ed669
commit
c0f8984d16
1 changed files with 5 additions and 1 deletions
|
@ -769,7 +769,11 @@ class MessageComposerViewModel @AssistedInject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Can't use the hiltMaverick here because some dependencies are injected here and in fragment but they don't share the graph.
|
* We're unable to create this ViewModel with `by hiltMavericksViewModelFactory()` due to the
|
||||||
|
* VoiceMessagePlaybackTracker being ActivityScoped
|
||||||
|
*
|
||||||
|
* This factory allows us to provide the ViewModel instance from the Fragment directly
|
||||||
|
* bypassing the Singleton scope requirement
|
||||||
*/
|
*/
|
||||||
companion object : MavericksViewModelFactory<MessageComposerViewModel, MessageComposerViewState> {
|
companion object : MavericksViewModelFactory<MessageComposerViewModel, MessageComposerViewState> {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue