return generic style

This commit is contained in:
Rinat Nurmukhametov 2021-08-16 15:11:55 +03:00
parent 1a63c13680
commit e97d8dcafb
2 changed files with 6 additions and 3 deletions

View File

@ -9,8 +9,11 @@ import ru.touchin.roboswag.mvi_arch.marker.ViewState
/**
* Interface with the main MVI methods and fields
*/
interface IMvi<NavArgs : Parcelable, Action : ViewAction, State : ViewState, VM>
where VM : MviViewModel<NavArgs, Action, State> {
interface IMvi<NavArgs, Action, State, VM>
where NavArgs : Parcelable,
State : ViewState,
Action : ViewAction,
VM : MviViewModel<NavArgs, Action, State> {
/**
* Use [viewModel] extension to get an instance of your view model class.

View File

@ -46,7 +46,7 @@ import javax.inject.Inject
*/
abstract class MviFragment<NavArgs, State, Action, VM>(
@LayoutRes layout: Int
) : BaseFragment<BaseActivity>(layout), IMvi<NavArgs, State, Action, VM>
) : BaseFragment<BaseActivity>(layout), IMvi<NavArgs, Action, State, VM>
where NavArgs : Parcelable,
State : ViewState,
Action : ViewAction,