mirror of
https://github.com/element-hq/element-android
synced 2024-11-23 18:05:36 +03:00
Improve template
This commit is contained in:
parent
43b9e2cec9
commit
9fed62e4a7
1 changed files with 4 additions and 2 deletions
|
@ -6,6 +6,7 @@ import com.airbnb.mvrx.MvRxViewModelFactory
|
||||||
import com.airbnb.mvrx.ViewModelContext
|
import com.airbnb.mvrx.ViewModelContext
|
||||||
import com.squareup.inject.assisted.Assisted
|
import com.squareup.inject.assisted.Assisted
|
||||||
import com.squareup.inject.assisted.AssistedInject
|
import com.squareup.inject.assisted.AssistedInject
|
||||||
|
import im.vector.riotx.core.extensions.exhaustive
|
||||||
import im.vector.riotx.core.platform.VectorViewModel
|
import im.vector.riotx.core.platform.VectorViewModel
|
||||||
|
|
||||||
<#if createViewEvents>
|
<#if createViewEvents>
|
||||||
|
@ -38,7 +39,8 @@ class ${viewModelClass} @AssistedInject constructor(@Assisted initialState: ${vi
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun handle(action: ${actionClass}) {
|
override fun handle(action: ${actionClass}) {
|
||||||
//TODO
|
when (action) {
|
||||||
}
|
|
||||||
|
|
||||||
|
}.exhaustive
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue