Skip to content

Commit

Permalink
Merge branch '46-pass-activity-context-instead-of-application-context…
Browse files Browse the repository at this point in the history
…-to-oncustomschemeerror' into 'master'

Resolve "Pass activity context instead of application context to onCustomSchemeError"

Closes #46

See merge request pace/mobile/android/pace-cloud-sdk!37
  • Loading branch information
Martin Dinh committed Jan 28, 2021
2 parents ae9c180 + 8a8ec31 commit 6be9e6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ import cloud.pace.sdk.utils.onMainThread
import com.google.gson.Gson
import kotlinx.android.synthetic.main.app_web_view.view.*
import org.koin.core.inject
import org.koin.core.parameter.parametersOf

class AppWebView(context: Context, attributeSet: AttributeSet) : RelativeLayout(context, attributeSet), CloudSDKKoinComponent {

private val webViewModel: AppWebViewModel by inject()
private val webViewModel: AppWebViewModel by inject { parametersOf(context) }
private var fragment: Fragment? = null
private val gson = Gson()
private val loadingIndicatorRunnable = Runnable {
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/java/cloud/pace/sdk/utils/KoinConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ object KoinConfig {
single<AppModel> { AppModelImpl() }
single { AppManager() }
viewModel<AppFragmentViewModel> { AppFragmentViewModelImpl(get(), get()) }
viewModel<AppWebViewModel> { AppWebViewModelImpl(get(), get(), get(), get(), get(), get()) }
viewModel<AppWebViewModel> { (context: Context) -> AppWebViewModelImpl(context, get(), get(), get(), get(), get()) }
viewModel<AppDrawerViewModel> { AppDrawerViewModelImpl(get()) }
})
}
Expand Down

0 comments on commit 6be9e6a

Please sign in to comment.