Skip to content

Commit 6c0a735

Browse files
committed
[Contactables] Fix InvalidCastException
1 parent 24729e3 commit 6c0a735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Contactables/ContactablesLoaderCallbacks.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public Loader OnCreateLoader (int loaderIndex, Bundle args)
7676

7777
public void OnLoadFinished (Loader loader, Java.Lang.Object data)
7878
{
79-
ICursor cursor = (ICursor) data;
79+
var cursor = data.JavaCast<ICursor> ();
8080

8181
TextView tv = ((Activity) mContext).FindViewById <TextView> (Resource.Id.sample_output);
8282

0 commit comments

Comments
 (0)