Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Crash when using GetRecyclerAdapter extension method only when building on Mac. #17

Open
Lapinou42 opened this issue Jan 12, 2018 · 1 comment

Comments

@Lapinou42
Copy link

Lapinou42 commented Jan 12, 2018

Hello,

I noticed we got a crash when using the extension method "GetRecyclerAdapter" of https://www.nuget.org/packages/MvvmLightAndroidSupport/ when building app on Mac only.

Here the few lines that cause de crash :

var adapter = ViewModel.SettingsIntemViewModels.ToList().GetRecyclerAdapter(BindViewHolderDelegate, CreateViewHolder);

Here is a small tutorial I followed : http://www.blogaboutxamarin.com/using-the-mvvm-light-observablerecyleradapter-with-the-xamarin-android-recylerview/

We use the last version of Visual Studio for Mac and compile in Android 8.0 Oreo.
Unfortunately, I got no exception so I can't see what's wrong.

@Lapinou42 Lapinou42 changed the title Crash when using GetRecyclerAdapter extension methods only when building on Mac. Crash when using GetRecyclerAdapter extension method only when building on Mac. Jan 12, 2018
@Lapinou42
Copy link
Author

It seems it when is using generic types. I tried to copy / past your method and test with / without generic types and when I use them, it crashes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant