mvvmlight icon indicating copy to clipboard operation
mvvmlight copied to clipboard

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

Open Lapinou42 opened this issue 6 years ago • 1 comments

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 avatar Jan 12 '18 09:01 Lapinou42

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.

Lapinou42 avatar Jan 12 '18 12:01 Lapinou42