mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 21:48:50 +03:00
Remove useless code. We can now inject element in the Fragment constructors
This commit is contained in:
parent
b4f9d40767
commit
51a95554d7
1 changed files with 0 additions and 3 deletions
|
@ -97,12 +97,9 @@ abstract class VectorBaseFragment : BaseMvRxFragment(), HasScreenInjector {
|
||||||
unrecognizedCertificateDialog = screenComponent.unrecognizedCertificateDialog()
|
unrecognizedCertificateDialog = screenComponent.unrecognizedCertificateDialog()
|
||||||
viewModelFactory = screenComponent.viewModelFactory()
|
viewModelFactory = screenComponent.viewModelFactory()
|
||||||
childFragmentManager.fragmentFactory = screenComponent.fragmentFactory()
|
childFragmentManager.fragmentFactory = screenComponent.fragmentFactory()
|
||||||
injectWith(injector())
|
|
||||||
super.onAttach(context)
|
super.onAttach(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
protected open fun injectWith(injector: ScreenComponent) = Unit
|
|
||||||
|
|
||||||
@CallSuper
|
@CallSuper
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
|
|
Loading…
Reference in a new issue