[FIX] Rechangement de repo dans la factory

Android
Renaud BEURET 1 year ago
parent 2d0e9022dd
commit ac75980226

@ -70,13 +70,8 @@ class KahootViewModel(
override fun <T : ViewModel> create( override fun <T : ViewModel> create(
modelClass: Class<T> modelClass: Class<T>
): T { ): T {
val repo = QuestionStubRepository()
repo.setQuestionsStub(arrayListOf(
StubQuestionWithReponses.ToModel(),
StubQuestionWithReponses2.ToModel()
))
return KahootViewModel( return KahootViewModel(
repo QuestionAPIRepository()
) as T ) as T
} }
} }

Loading…
Cancel
Save