From 67056bdea1ca4ff5330ff19eb5c1333c43394287 Mon Sep 17 00:00:00 2001 From: Erik Eelde Date: Mon, 15 Oct 2018 22:05:55 +0200 Subject: [PATCH] Fix crash in sample application --- wrench-sample/src/main/java/com/example/wrench/di/Module.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wrench-sample/src/main/java/com/example/wrench/di/Module.kt b/wrench-sample/src/main/java/com/example/wrench/di/Module.kt index 512cae6..00bc308 100644 --- a/wrench-sample/src/main/java/com/example/wrench/di/Module.kt +++ b/wrench-sample/src/main/java/com/example/wrench/di/Module.kt @@ -4,6 +4,7 @@ import com.example.wrench.livedataprefs.LiveDataPreferencesFragmentViewModel import com.example.wrench.service.WrenchServiceFragmentViewModel import com.example.wrench.wrenchprefs.WrenchPreferencesFragmentViewModel import com.izettle.wrench.preferences.WrenchPreferences +import com.izettle.wrench.service.Provider import com.izettle.wrench.service.WrenchPreferenceProvider import com.izettle.wrench.service.WrenchService import org.koin.android.ext.koin.androidContext @@ -14,7 +15,7 @@ val sampleAppModule = module { factory { WrenchPreferences(androidContext()) } factory { androidContext().resources } factory { WrenchService.with(get()) } - factory { WrenchPreferenceProvider(get()) } + factory { WrenchPreferenceProvider(get()) } viewModel { LiveDataPreferencesFragmentViewModel(androidContext()) } viewModel { WrenchPreferencesFragmentViewModel(get(), get()) } viewModel { WrenchServiceFragmentViewModel(get()) }